Need me /setworld command..
#2

pawn Код:
YCMD:setworld(playerid, o[], help)
{
    if(help) return SendClientMessage(playerid, -1, "Change a player world");
    new id, world, name[ MAX_PLAYER_NAME ], name2[ MAX_PLAYER_NAME ], string[ 128 ];
    if(sscanf(o,"ui", id, world)) return SendClientMessage(playerid, -1, "Syntax Error: /setworld [PlayerName/ID] [World]");
    if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "This player is offline"):
    GetPlayerName(playerid, name, MAX_PLAYER_NAME); GetPlayerName(id, name2, MAX_PLAYER_NAME);
    format(string, sizeof(string),"%s has changed %s virtual world to %d", name, name2, world);
    SendClientMessageToAll(-1, string);
    SetPlayerVirtualWorld(id, world);
    return 1;
}
Reply


Messages In This Thread
Need me /setworld command.. - by dundolina - 08.10.2011, 15:34
Re: Need me /setworld command.. - by Jafet_Macario - 08.10.2011, 15:37

Forum Jump:


Users browsing this thread: 2 Guest(s)