22.05.2013, 18:31
Hellow, how to make that you can only change the map between 0-36?
Код:
CMD:nextmap(playerid,params[])
{
if(pInfo[playerid][pLogged] == 1)
{
if(pInfo[playerid][pAdminLevel] >= 3)
{
new map,stringmap[256];
if(sscanf(params,"i", map)) return SendClientMessage(playerid,-1,""chat" /nextmap [mapid]");
format(stringmap,sizeof(stringmap),""chat""COL_LIGHTBLUE" Next Map ID has been setted to %i!",map);
SendClientMessageToAll(-1,stringmap);
mapid = map;
}
}
return 1;
}


