[AJUDA] OnPlayerCommandText
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/hqadmin", cmdtext, true, 10) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if PlayerInfo[playerid][pAdmin] >= 1)
                if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342 && PlayerInfo[playerid][pAdmin] != 1341)
                    return MSGPLAYER(playerid, COLOR_YELLOW, "Vocк nгo estб trabalhando! (/pa)");


            if (GetPlayerState(playerid) == 2)
            {
                new tmpcar = GetPlayerVehicleID(playerid);
                SetVehiclePos(tmpcar, 229.359,-1807.635,4.141); LinkVehicleToInterior(tmpcar, 0);
            }
            else
            {
                SetPlayerPos(playerid, 229.359,-1807.635,4.141);
                SetPlayerFacingAngle(playerid, 90);
                SendClientMessage(playerid, COLOR_GREEN, "Bem Vindo");
                return 1;
            }
        }
    }
        return 0;
}
Reply


Messages In This Thread
[AJUDA] OnPlayerCommandText - by kshorro - 02.10.2011, 17:04
Re: [AJUDA] OnPlayerCommandText - by ViniBorn - 02.10.2011, 17:12
Re: [AJUDA] OnPlayerCommandText - by Vai_Besta - 02.10.2011, 18:18

Forum Jump:


Users browsing this thread: 1 Guest(s)