[Pomoc]komanda /givegun

Započeo zanda55
30. Avg. 2011.
899
pregleda
2
postova
zanda55
3
Hustler
30. Avg. 2011.
ovo je komanda za dati oruzje jednom igracu 
CMD:givegun(playerid, params[])
{

new idx;

    if(IsPlayerConnected(playerid))
    {
temp = strtok(params, idx);
if(!strlen(temp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{168BFF}INFO: {959561} /givegun {959561}[ID/DioImena] {838361} [weaponid(eg. 46 = Parachute)] ");
return 1;
}
new playa;
new gun;
new ammo;
playa = ReturnUser(temp);
temp = strtok(params, idx);
gun = strval(temp);
if(!strlen(temp))
{
SendClientMessage(playerid, COLOR_GRAD1, "{168BFF}INFO: {959561} /givegun {959561}[ID/DioImena] {838361} ");
SendClientMessage(playerid, COLOR_GRAD4, "3(Club) 4(knife) 5(bat) 6(Shovel) 7(Cue) 8(Katana) 10-13(Dildo) 14(Flowers) 16(Grenades) 18(Molotovs) 22(Pistol) 23(SPistol)");
SendClientMessage(playerid, COLOR_GRAD3, "24(Eagle) 25(shotgun) 29(MP5) 30(AK47) 31(M4) 33(Rifle) 34(Sniper) 37(Flamethrower) 41(spray) 42(exting) 43(Camera) 46(Parachute)");
return 1;
}
if(gun < 1||gun > 46||gun==27||gun==1||gun==2||gun==9||gun==17||gun==19||gun==20||gun==21||gun==39||gun==40||gun==44||gun==45)
{ SendClientMessage(playerid, COLOR_GRAD1, "  Pogresan ID oruzja!"); return 1; }
temp = strtok(params, idx);
ammo = strval(temp);


if (PlayerInfo >= 4)
{
    if(IsPlayerConnected(playa))
    {
        if(playa != INVALID_PLAYER_ID)
        {
GivePlayerWeapon(playa, gun, ammo);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "  Nisi ovlasten!");
}
}
return 1;
}

dali mi neko moze rec dai se moze napravit komanda da da oruzje svim igracima molim vas hitno jako mi je potrebno
GGC
5
Godfather
30. Avg. 2011.
  CMD:givegun(playerid, params[])
  {
     
      new idx;
     
      if(IsPlayerConnected(playerid))
      {
        temp = strtok(params, idx);
        if(!strlen(temp))
        {
            SendClientMessage(playerid, COLOR_GRAD2, "{168BFF}INFO: {959561} /givegun{838361} [weaponid(eg. 46 = Parachute)] ");
            return 1;
        }
        new gun;
        new ammo;
        gun = strval(temp);
        if(!strlen(temp))
        {
            SendClientMessage(playerid, COLOR_GRAD1, "{168BFF}INFO: {959561} /givegun {838361} ");
            SendClientMessage(playerid, COLOR_GRAD4, "3(Club) 4(knife) 5(bat) 6(Shovel) 7(Cue) 8(Katana) 10-13(Dildo) 14(Flowers) 16(Grenades) 18(Molotovs) 22(Pistol) 23(SPistol)");
            SendClientMessage(playerid, COLOR_GRAD3, "24(Eagle) 25(shotgun) 29(MP5) 30(AK47) 31(M4) 33(Rifle) 34(Sniper) 37(Flamethrower) 41(spray) 42(exting) 43(Camera) 46(Parachute)");
            return 1;
        }
        if(gun < 1||gun > 46||gun==27||gun==1||gun==2||gun==9||gun==17||gun==19||gun==20||gun==21||gun==39||gun==40||gun==44||gun==45)
        { SendClientMessage(playerid, COLOR_GRAD1, "  Pogresan ID oruzja!"); return 1; }
        temp = strtok(params, idx);
        ammo = strval(temp);
          foreach(Player, playa)
        {
                  GivePlayerWeapon(playa, gun, ammo);
        }
      }
      return 1;
  }

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha