SA-MP Forums Archive
I need Simple Help. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: I need Simple Help. (/showthread.php?tid=605624)



I need Simple Help. - Azhar - 22.04.2016

My script compiles better.But...
When i type /startautorace cmd in server without login rcon that shows "You are Not an Administrator", when i login rcon and type /startautorace that shows me "Unknown command"
please solve this error..

Код:
CMD:startautorace(playerid, params[])
{
	if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, RED, "SERVER: You are not an administrator!");
	if(RaceBusy == 0x01 || RaceStarted == 1) return SendClientMessage(playerid, RED, "SERVER: There's a race currently. Wait first till race ends!");
	if(AutomaticRace == true) return SendClientMessage(playerid, RED, "SERVER: It's already enabled!");
    LoadRaceNames();
	LoadAutoRace(RaceNames[random(TotalRaces)]);
	AutomaticRace = true;
	SendClientMessage(playerid, GREEN, "You stared auto race. The filterscript will start a random race everytime the previous race is over!");
    GetPlayerPos(playerid,xpos,ypos,zpos);
    GetPlayerHealth(playerid,hp[playerid]);
    GetPlayerArmour(playerid,armour[playerid]);
	JoinCount = 1;
	DM[playerid] =0;
	return 1;
}



Re: I need Simple Help. - Azhar - 22.04.2016

Problem Solved :P