28.12.2010, 16:12
Yes its like this
if(strcmp(cmd, "/equipcop", true) == 0)
{
if(PlayerToPoint(3, playerid,2300.1250,-1629.1116,14.653)
{
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 no t a cop");
}
}
}
please help i dnt sleep 4 2 nights lmfao
if(strcmp(cmd, "/equipcop", true) == 0)
{
if(PlayerToPoint(3, playerid,2300.1250,-1629.1116,14.653)
{
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 no t a cop");
}
}
}
please help i dnt sleep 4 2 nights lmfao