08.06.2012, 17:44
pawn Код:
CMD:world(playerid , params[])
{
new world;
if(sscanf(params,"i",world)) return SendClientMessage(playerid,-1,"/word <worldid>");
if(0=< world < 99)
{
SetPlayerVirtualWorld(playerid,world);
// set variable to player worldid ?
Worlds[playerid] = world;
SendClientMessage(playerid,-1,"Success!");
}else return SendClientMessage(playerid,-1,"Valid id 0-99");
return 1;
}