SA-MP Forums Archive
[AJUDA]Nгo Aparece A Mensagem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA]Nгo Aparece A Mensagem (/showthread.php?tid=305315)



[AJUDA]Nгo Aparece A Mensagem - [DPS]FireFox. - 22.12.2011

Po Gente, Eu aki De novo rsrsrs... Olha Qunado Teleporta Nao Aparece Nenhuma Mensagem,
Por Favor corrigam pra mim rsrs...
Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/Drift", true) == 0)
{
SetPlayerInterior(playerid, 0);
new State = GetPlayerState(playerid);
if(State!=PLAYER_STATE_DRIVER) return SetPlayerPos(playerid,-280.6368,1535.1832,75.3594);
if(IsPlayerInAnyVehicle(playerid))
{
new Carro = GetPlayerVehicleID(playerid);
SetVehiclePos(Carro, -280.6368,1535.1832,75.3594);
SetPlayerPos(playerid, -280.6368,1535.1832,75.3594);
SetVehicleZAngle(Carro, 128.0556);
PutPlayerInVehicle(playerid, Carro, 0);
}
else return SetPlayerPos(playerid,-280.6368,1535.1832,75.3594);
SendClientMessage(playerid, 0x46BBAA00,"Vocк foi para Drift X1!");
new Nome[MAX_PLAYER_NAME], string[40];
GetPlayerName(playerid, Nome, sizeof(Nome));
format(string, sizeof(string), "%s foi para (/drift)", Nome);
SendClientMessageToAll(0x46BBAA00, string);
return 1;
}
return 0;
}




Re: [AJUDA]Nгo Aparece A Mensagem - [O.z]Caroline - 22.12.2011

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/Drift", true) == 0)
    {
        SetPlayerInterior(playerid, 0);
        new State = GetPlayerState(playerid);
        if(State!=PLAYER_STATE_DRIVER) return SetPlayerPos(playerid,-280.6368,1535.1832,75.3594);
        if(IsPlayerInAnyVehicle(playerid))
        {
            new Carro = GetPlayerVehicleID(playerid);
            SetVehiclePos(Carro, -280.6368,1535.1832,75.3594);
            SetPlayerPos(playerid, -280.6368,1535.1832,75.3594);
            SetVehicleZAngle(Carro, 128.0556);
            PutPlayerInVehicle(playerid, Carro, 0);
            return 1;
        }
        SetPlayerPos(playerid,-280.6368,1535.1832,75.3594);
        SendClientMessage(playerid, 0x46BBAA00,"Vocк foi para Drift X1!");
        new Nome[MAX_PLAYER_NAME], string[40];
        GetPlayerName(playerid, Nome, sizeof(Nome));
        format(string, sizeof(string), "%s foi para (/drift)", Nome);
        SendClientMessageToAll(0x46BBAA00, string);
        return 1;
    }
    return 0;
}
ou
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/Drift", true) == 0)
    {
        SetPlayerInterior(playerid, 0);
        SendClientMessage(playerid, 0x46BBAA00,"Vocк foi para Drift X1!");
        new Nome[MAX_PLAYER_NAME], string[40];
        GetPlayerName(playerid, Nome, sizeof(Nome));
        format(string, sizeof(string), "%s foi para (/drift)", Nome);
        SendClientMessageToAll(0x46BBAA00, string);
       
        if(IsPlayerInAnyVehicle(playerid))
        {
            SetVehiclePos(GetPlayerVehicleID(playerid), -280.6368,1535.1832,75.3594);
            SetPlayerPos(playerid, -280.6368,1535.1832,75.3594);
            SetVehicleZAngle(GetPlayerVehicleID(playerid), 128.0556);
            return 1;
        }
       
        SetPlayerPos(playerid,-280.6368,1535.1832,75.3594);
        return 1;
    }
    return 0;
}



Re: [AJUDA]Nгo Aparece A Mensagem - [DPS]FireFox. - 22.12.2011

Vlws Carolline..
O Primeiro De Fail Mas O segundo Perfect
Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/Drift", true) == 0)
{
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, 0x46BBAA00,"Vocк foi para Drift X1!");
new Nome[MAX_PLAYER_NAME], string[40];
GetPlayerName(playerid, Nome, sizeof(Nome));
format(string, sizeof(string), "%s foi para (/drift)", Nome);
SendClientMessageToAll(0x46BBAA00, string);

if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), -280.6368,1535.1832,75.3594);
SetPlayerPos(playerid, -280.6368,1535.1832,75.3594);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 128.0556);
return 1;
}

SetPlayerPos(playerid,-280.6368,1535.1832,75.3594);
return 1;
}
return 0;
}

ASSUNTO ENCERRADO