22.07.2010, 17:37
i HIGHLY recommend using zcmd, first because its faster. 2nd because its easier to code: btw, also add sscanf there:
as you see, less lines and it does what you want. if you use strcmp in your gamemode, probably you can use zcmd commands in a filterscript. Because OnPlayerCommandText and zcmd aren't compatible. So yeah, easy as it is
pawn Код:
CMD:world(playerid,params[])
{
new ID;
if(sscanf(params,"d",ID)) return SendClientMessage(playerid, COLOR_RED,"USAGE: /Setworld < worldid >");
SetPlayerVirtualWorld(playerid,ID);
return 1;
}
