Command /areaREPAIR ?
#1

Hi, i have a problem with command /arearepair.

Код:
CMD:arearepair(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 2 )
	{
		new Float:raza;
		if(sscanf(params, "f", raza)) MSG(playerid, -1, "{99FF00}Usage: {FFFFFF}/arearepair <range>");
		else
		{
			new Float:x, Float:y, Float:z;
			GetPlayerPos(playerid, Float:x, Float:y, Float:z);
			for(new i=0; i<MAX_VEHICLES; i++)
			{
			    RepairVehicle(i);
				SetVehicleHealth(i, 100);
				for(new p=0; p<MAX_PLAYERS; p++)
				{
				     if(IsPlayerInRangeOfPoint(p, raza, Float:x, Float:y, Float:z))
			    	     {
					    new string[264], AN[MAX_PLAYER_NAME];
					    GetPlayerName(playerid, AN, sizeof(AN));
					    format(string, sizeof(string), "{FF0000}Info: {FFFFFF}%s a reparat toate vehiculele din raza de %f metrii.", AN, raza);
					    SendClientMessage(p, -1, string);
				     }
				}
			}
		}
	}
	else
	{
	    MSG(playerid, -1, "{CC0000}(!) Nu esti autorizat sг folosesti aceastг comandг.");
	}
	return 1;
}
When i use /arearepair 50 for example, nothing happens. Why ?

I'm new in pawn, so do not "jump" on me
Reply


Messages In This Thread
Command /areaREPAIR ? - by EuBagPula - 27.04.2016, 17:16
Re: Command /areaREPAIR ? - by BloodyRP - 27.04.2016, 17:18
Re: Command /areaREPAIR ? - by EuBagPula - 27.04.2016, 17:19
Re: Command /areaREPAIR ? - by BloodyRP - 27.04.2016, 17:27
Re: Command /areaREPAIR ? - by EuBagPula - 27.04.2016, 18:35
Re: Command /areaREPAIR ? - by DarK_FeneR - 30.04.2016, 17:31

Forum Jump:


Users browsing this thread: 1 Guest(s)