cops on my GM
#11

Quote:
Originally Posted by !Pujan
pawn Код:
if(strcmp(cmd, "/copweapons", true) == 0)
{
  if (GetPlayerSkin(playerid) == 280 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 288 || GetPlayerSkin(playerid) == 284 || GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286 )
  {
  GivePlayerWeapon(playerid, 22, 60); // 9MM with 60 ammo's
  GivePlayerWeapon(playerid, 25, 100); // Shotgun with 100 ammo's
  GivePlayerMoney(playerid, -100); // Price for weapons
  }
  else
  {
  SendClientMessage(playerid, 0xFF6347AA, "This command is only for cops!");
  }
  return 1;
}
You can add more skins if you want.
thanks for the command it works fine.. but
Код:
if(strcmp(cmd, "/copweapons", true) == 0)
warning 217: loose indentation

and get a warning at my hous /hlock command
Код:
if(strcmp(cmd, "/hlock", true) == 0)
warning 217: loose indentation
Reply


Messages In This Thread
cops on my GM - by cruising - 14.10.2008, 22:50
Re: cops on my GM - by Vladis - 15.10.2008, 12:30
Re: cops on my GM - by cruising - 16.10.2008, 21:09
Re: cops on my GM - by Vladis - 16.10.2008, 22:01
Re: cops on my GM - by cruising - 17.10.2008, 14:06
Re: cops on my GM - by Vladis - 17.10.2008, 14:09
Re: cops on my GM - by cruising - 17.10.2008, 15:30
Re: cops on my GM - by flakey - 17.10.2008, 16:03
Re: cops on my GM - by Vladis - 17.10.2008, 16:32
Re: cops on my GM - by cruising - 17.10.2008, 18:00
Re: cops on my GM - by cruising - 17.10.2008, 19:17
Re: cops on my GM - by |CrippinBloodDrippin| - 17.10.2008, 20:03
Re: cops on my GM - by cruising - 17.10.2008, 20:20
Re: cops on my GM - by CrazyMaoam - 16.12.2009, 14:46

Forum Jump:


Users browsing this thread: 1 Guest(s)