Please, SA-MP community, if I could have a minute of your time.
#8

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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)