22.07.2010, 16:52
(
Последний раз редактировалось DJDhan; 22.07.2010 в 17:04.
)
Код:
if(!strcmp(cmdtext, "/world", true)) { new string[256], tmp[256],wid,Index; tmp = strtok(cmdtext,Index); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /world worldid [0 - 500000]"); wid = strval(tmp); if(wid < 0 || wid > 500000) return SendClientMessage(playerid,COLOR_RED,"Invalid world ID [0 - 500000]"); SetPlayerVirtualWorld(playerid, wid); format(string, 128, "You have set your world to %d",wid); SendClientMessage(playerid, COLOR_GREEN, string); return 1; }