10.06.2012, 19:06
Try this:
pawn Код:
COMMAND:gotoworld(playerid, params[])
{
if(isnull(params))
{
SendClientMessage(playerid, COLOR_GREY, "[USAGE]: /world [number]");
}
if(strval(params) == 1)
{
SetPlayerVirtualWorld(playerid, 1);
SendClientMessage(playerid, COLOR_GREEN, "You have gone to virtual world 1");
}
if(strval(params) == 2)
{
SetPlayerVirtualWorld(playerid, 2);
SendClientMessage(playerid, COLOR_GREEN, "You have gone to virtual world 2");
}
return 1;
}