17.10.2008, 16:03
pawn Code:
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;
}