28.12.2010, 16:14
pawn Код:
if(strcmp(cmd, "/equipcop", true) == 0)
{
if(PlayerToPoint(3, playerid,2300.1250,-1629.1116,14.653 || IsPlayerInAnyVehicle(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21)//Cobras
{
format(string, sizeof(string), "* the cop %s is armed", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SetPlayerHealth(playerid, 100);
GivePlayerWeapon(playerid,24,200);
GivePlayerWeapon(playerid,25,200);
GivePlayerWeapon(playerid,5,1);
SendClientMessage(playerid,COLOR_GREEN,"You are ready to shoot some eggs");
return 1;
}
else
{
SendClientMessage(playerid, VERMELHO, "You are not a cop");
}
}
}