22.07.2010, 16:32
I tried to make this so it set's the player world, fixing one I had before but now it does not do anything.
Code:
Code:
pawn Код:
if(!strcmp(cmdtext, "/world", true))
{
if(!cmdtext[6])return SendClientMessage(playerid, COLOR_RED, "USAGE: /world [word 0 - 500000]");
if(cmdtext[7] > 500000) return SendClientMessage(playerid,COLOR_RED,"Invalid world ID.");
if(cmdtext[7] < 0) return SendClientMessage(playerid,COLOR_RED,"Invalid world ID.");
new string[256];
new tmp[256];
tmp = strtok(cmdtext[7],idx);
format(string, sizeof(string), "You have set your world to %s",tmp);
SetPlayerVirtualWorld(playerid, cmdtext[7]);
SendClientMessage(playerid, COLOR_GREEN, string);
return 1;
}