18.01.2012, 15:38
pawn Код:
if(strcmp(cmd, "/vw", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!isnull(tmp)) return SendClientMessage(playerid, -1, "SYNTAX: /vw <Virtual World ID");
new virid;
virid = strvalEx(tmp);
SetPlayerVirtualWorld(playerid, virid);
format(string, sizeof(string), "** You have set your virtual world to %d.", virid);
SendClientMessage(playerid, -1,string);
}
return 1;
}