Help me with the code please
#7

Quote:
Originally Posted by osman2571
Посмотреть сообщение
Код:
CMD:backup(playerid, params[])
{
	new string[128], Float:bkx, Float:bky, Float:bkz;
	if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
	if(!IsACop(playerid) && !IsFBI(playerid) && !IsNG(playerid) && !IsCTU(playerid) && !IsMedic(playerid) && !IsFireman(playerid))
	if(!PlayerInfo[playerid][pFacDuty]) return SendClientMessage(playerid, COLOR_GREY, "You are not on duty.");
	GetPlayerPos(playerid, bkx, bky, bkz);
	format(string, sizeof(string), "[Central Dispatch]: %s is requesting backup,his coordinates have been marked on the GPS.", RPN(playerid));
	SendCopMessage(COLOR_RADIO, string);
	foreach(Player, i)
	{
		if(!IsACop(i) && !IsFBI(i) && !IsNG(i) && !IsCTU(i) && !IsMedic(i) && !IsFireman(i))
		{
			SetPlayerMarkerForPlayer(i, playerid, COLOR_BACKUP);
		}
		else
		{
		    SendClientMessage(playerid, COLOR_GREY, "You are not a LEO.");
		}
	}
	return 1;
}
This will be for all factions
I'm in the army,
it's say that I'm not a LEO.
Reply


Messages In This Thread
Help me with the code please - by V1Su4L - 07.12.2014, 12:09
Re: Help me with the code please - by CutX - 07.12.2014, 12:23
Re: Help me with the code please - by V1Su4L - 07.12.2014, 12:29
Re: Help me with the code please - by V1Su4L - 07.12.2014, 12:38
Re: Help me with the code please - by V1Su4L - 07.12.2014, 12:50
Re: Help me with the code please - by V1Su4L - 07.12.2014, 13:26
Re: Help me with the code please - by V1Su4L - 07.12.2014, 13:36

Forum Jump:


Users browsing this thread: 1 Guest(s)