Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

anyone able to help me with a command

$
0
0
when i use this command it says that is doesnt exist ... but it works only sometimes then it will say that it doesnt work the coding is here for the command


CMD:backup(playerid, params[])
{
if(IsACop(playerid) || PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pDivision] == 2 || PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pRank] >= 5)
{
if(Backup[playerid] != 1)
{
new
zone[MAX_ZONE_NAME],
string[40 + MAX_PLAYER_NAME];

GetPlayer3DZone(playerid, zone, sizeof(zone));
format(string, sizeof(string), "* %s requests backup over their radio.", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
format(string, sizeof(string), "%s is requesting immediate backup at %s.", GetPlayerNameEx(playerid), zone);
Backup[playerid] = 1;
foreach(Player, i)
{
if(IsACop(i))
{
SetPlayerMarkerForPlayer(i, playerid, 0x2641FEAA);
SendClientMessage(i, TEAM_BLUE_COLOR, string);
}
}
SendClientMessage(playerid, COLOR_WHITE, "Type /nobackup to clear your backup request.");
SetTimerEx("BackupClear", 180000, false, "ii", playerid, 1);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You already have an active backup request!");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " You're not a Cop / FBI / Coastguard!");
}
return 1;
}

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>