23.11.2012, 18:14
Code:
if(pickupid == copdutypoint) { if(GetPlayerTeam(playerid) == 100) { if(GetTickCount()-GetPVarInt(playerid,"CopDutyPickupMS")>120000) { SetPVarInt(playerid,"CopDutyPickupMS",GetTickCount()); GivePlayerWeapon(playerid, 3, 1); GivePlayerWeapon(playerid, 22, 99); GivePlayerWeapon(playerid, 27, 50); new string[250]; new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name)); format(string,sizeof(string),"%s has gone on duty and collected their guns",Name); SendClientMessageToAll(0x33AA33AA, string); } else { GameTextForPlayer(playerid,"you already refilled some shit - go away!",4000,4); } } else SendClientMessage(playerid, 0xAA3333AA, "You can't go on duty! You're not a cop"); }