[AJUDA]Nгo Aparece A Mensagem
#1

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

Reply
#2

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)