/stop Command
#1

How to make

Code:
if (gTeam[giveplayerid] != 2)
and if player enter /stopcar

to print in radius of 30


Police Officer says : Stop you'r car and show you'r licences (/sl)



EDIT Done

Code:
if(strcmp("/stopcar", cmdtext, true, 10) == 0)
	{
		if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
		{
 			new string[256];
		    new sendername[MAX_PLAYER_NAME];
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), "*Policajac %s vam naredjuje da zaustavite auto.", sendername);
			ProxDetector(45.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		}
		else
		{
		    SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Niste clan Drzavnih Agencija!");
		}
		return 1;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)