22.04.2016, 14:09
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..
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; }