[pomoc] oruzje

Započeo Marko_Bavarac
8. Jun 2011.
1,041
pregleda
11
postova
ratko_mladic
3
Wheel Man
8. Jun 2011.
Mod:Balkan Underground
Problem: Ja sam napravio da kada kuca /oprema clan bande da mu da opremu ali kako sad da ogranicim da nemoze da opet dize opremu iz ormara dok ovu ne potrosi?
Dio Skripte:Moja komanda:
if(strcmp(cmd, "/opremay", true) == 0)
{
    if(PlayerInfo == 5 || PlayerInfo == 5)
    {
        if(PlayerToPoint(3.0,playerid,1257.5820,-809.9146,84.1406))
        {
            SafeGivePlayerWeapon(playerid,30,100);
            SafeGivePlayerWeapon(playerid,23,100);
            SetPlayerHealth(playerid,100);
        }
        else
        {
          SendClientMessage(playerid,COLOR_WHITE,"Niste pored ormarica sa opremom");
    }
    }
    return 1;
}

Neke slike:/
Mr.Lowrey
5
Godfather
8. Jun 2011.
ti hoces da nemoze opet kucati dok ne potrosi sva oruzija iz opreme?
ratko_mladic
3
Wheel Man
8. Jun 2011.
Hoću da onemogućim da koristi komandu dok ne potrosi tu municiju koju je uzeo iz ormarića.
Mr.Lowrey
5
Godfather
8. Jun 2011.
reci koja oruzija zelis, idove mozda znam kako 😄
ratko_mladic
3
Wheel Man
8. Jun 2011.
Oruzija su AK47 i Pistolj sa priguÅ¡ivačem  ( Pistolj 23 ID ,  AK47 30 ID )
Mr.Lowrey
5
Godfather
8. Jun 2011.
evo pooksaj nisam testao, ako ima kakavih warininga erroa reci
if(strcmp(cmd, "/opremay", true) == 0)
{
    if(PlayerInfo == 5 || PlayerInfo == 5)
    {
        if(PlayerToPoint(3.0,playerid,1257.5820,-809.9146,84.1406))
        {
            SafeGivePlayerWeapon(playerid,30,100);
            SafeGivePlayerWeapon(playerid,23,100);
            SetPlayerHealth(playerid,100);
        }
        else
        {
          SendClientMessage(playerid,COLOR_WHITE,"Niste pored ormarica sa opremom");
    }
    switch
    {
        case 0:
        {
        GetPlayerWeapon(playerid) == 30)
SendClientMessage(playerid, ukucajt tu svoju boju, "Dok ne potrosite AK47 i Silenced Pistol nemozete uzeti novi");
}
                case 1:
                {
                        GetPlayerWeapon(killerid) == 23)
                        SendClientMessage(playerid, ukucajt tu svoju boju, "Dok ne potrosite AK47 i Silenced Pistol nemozete uzeti novi");
                }
}
    }
    return 1;
}
samo poravnaj linije
ratko_mladic
3
Wheel Man
8. Jun 2011.
Izbaci mi windows error da nemoze compile pawna zbog nekoga velikog errora !!!
Mr.Lowrey
5
Godfather
8. Jun 2011.
eo nove verzija probaj
if(strcmp(cmd, "/opremay", true) == 0)
{
    if(PlayerInfo == 5 || PlayerInfo == 5)
    {
        if(PlayerToPoint(3.0,playerid,1257.5820,-809.9146,84.1406))
        {
            SafeGivePlayerWeapon(playerid,30,100);
            SafeGivePlayerWeapon(playerid,23,100);
            SetPlayerHealth(playerid,100);
        }
        else SendClientMessage(playerid,COLOR_WHITE,"Niste pored ormarica sa opremom");
    switch
    {
        case 0:
        {
        GetPlayerWeapon(playerid) == 30)
GetPlayerWeapon(killerid) == 23)
SendClientMessage(playerid, ukucajt tu svoju boju, "Dok ne potrosite AK47 i Silenced Pistol nemozete uzeti novi");
}
}
    }
    return 1;
}
ratko_mladic
3
Wheel Man
8. Jun 2011.
opet isto !! ☹️
Luis
5
Godfather
8. Jun 2011.
Marko_Bavarac wrote on June 8, 2011, 6:34 pm:
opet isto !! ☹️

Zasto nenapravis mats system ili da naplacuje  ?
za ovo treba vise posla.
ratko_mladic
3
Wheel Man
8. Jun 2011.
Ja imam u svakoj org sef sa matsima i drogom...al hocu da napravim da svaki igrac mora da uzme oruzje iz ormarica da ne dobija na spawnu...ipak su vise ormarici RP...al sad jesil mislio da mu oduzima pare kada uzima oruzje ili?

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha