18.05.2015, 11:59
Hello i have command and i have the level of admin to use it but still give me the text message that i dont have premission to use this command. What is the problem?
Код:
if(strcmp(cmd, "/refuelcars", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 5) { SendClientMessage(playerid, COLOR_GRAD1, "Нямаш достатъчно права, за да използваш командата!"); return 1; } else { for(new cars=0; cars<MAX_VEHICLES; cars++) { if(!VehicleOccupied(cars)) { fuel[cars] = fuel[cars] = 100; //restoring fuel to 100 isrefuelling[playerid] = 0;//resetting anti-spam thingy :3 } } format(string, sizeof(string), "%s зареди всички коли!", PlayerName(playerid)); SendClientMessageToAll(COLOR_GRAD1,string); } } return 1; }