[Duda] No comandos en virtual world.
#6

jumm tienes razon no pense en otros scripts, entonces esta podria ser otra forma como la indican Cesar y Grove;

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/comando1", cmdtext, true, 10) == 0)
    {
        if(GetPlayerVirtualWorld(playerid) != 0)
            return SendClientMessage(playerid,-1,"** Tu debes estar en el virtual world numero 0");

        Funcion();
        return 1;
    }
    if (strcmp("/comando2", cmdtext, true, 10) == 0)
    {
        if(GetPlayerVirtualWorld(playerid) != 5)
            return SendClientMessage(playerid,-1,"** Tu debes estar en el virtual world numero 5");

        Funcion();
        return 1;
    }
    if (strcmp("/comando3", cmdtext, true, 10) == 0)
    {
        if(GetPlayerVirtualWorld(playerid) != 8)
            return SendClientMessage(playerid,-1,"** Tu debes estar en el virtual world numero 8");

        Funcion();
        return 1;
    }

    return 0;
}
Reply


Messages In This Thread
[Duda] No comandos en virtual world. - by RiChArD_A - 01.03.2013, 12:42
Respuesta: [Duda] No comandos en virtual world. - by Fluid016 - 01.03.2013, 13:04
Respuesta: [Duda] No comandos en virtual world. - by Parka - 01.03.2013, 13:09
Respuesta: [Duda] No comandos en virtual world. - by xSDx - 01.03.2013, 14:08
Respuesta: [Duda] No comandos en virtual world. - by TheChaoz - 01.03.2013, 15:21
Respuesta: [Duda] No comandos en virtual world. - by xSDx - 01.03.2013, 15:27
Respuesta: [Duda] No comandos en virtual world. - by RiChArD_A - 01.03.2013, 21:03
Respuesta: [Duda] No comandos en virtual world. - by RiChArD_A - 02.03.2013, 11:30

Forum Jump:


Users browsing this thread: 1 Guest(s)