HELP??
#1

Код:
dcmd_m(playerid, params[])
{
  new str[256]; new suspect = GetClosestPlayer(playerid); new mr[24]; new pname[24];
	if(strlen(!params))
  GetPlayerName(suspect, mr, 24);
  GetPlayerName(playerid, pname, 24);
	if(GetDistanceBetweenPlayers(playerid, suspect) > 20 && Faction[playerid] == 3 || 6 || 7 || 12 && GetPlayerVehicleID(playerid) == 596 || 599 || 490 || 427 || 523)
	{
	format(str, sizeof(str), "MEGAPHONE: POLICE! PULL OVER YOUR VEHICLE NOW!!");
	ProxDetector(30.0, playerid, str, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
	}
	return 1;
}
Thats the code, but when I actually use it, wether the player is in any of the factions or not, or whatever car he's in, the player can use the /megaphone at any time.. How do i fix this?
Reply
#2

that dcmd is /m not /megaphone thats what u mean?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)