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