[Ajuda] Erro Nos Comandos
#8

pawn Код:
CMD:ir(playerid, params[])
{
    new PlayerID, Veiculo;
    new rString[150];
    if(sscanf(params, "u",PlayerID)) return SendClientMessage(playerid, Azul, "{3cff00}Ч INFO Ч {a9a9a9}/Goto [playerid]");
    if(!IsPlayerConnected(PlayerID)) return SendClientMessage(playerid, Cinza, "{3cff00}Ч ERRO Ч {A9A9A9}Jogador nгo estб conectado.");
    GetPlayerPos(PlayerID, X, Y, Z);
    if(IsPlayerInAnyVehicle(playerid))
    {
        Veiculo = GetPlayerVehicleID(playerid);
        LinkVehicleToInterior(Veiculo, GetPlayerInterior(PlayerID));
        SetVehiclePos(Veiculo, X, Y, Z+2);
        PutPlayerInVehicle(playerid, Veiculo, 0);
        format(rString, sizeof(rString), "{3cff00}Ч INFO Ч {FFFFFF}Vocк foi atй o jogador {FF0000}%s{FFFFFF}.", rNome(PlayerID));
        SendClientMessage(playerid, Cinza, rString);
        format(rString, sizeof(rString), "{3cff00}Ч INFO Ч {FFFFFF}O jogador {FF0000}%s{FFFFFF} se teleportou atй vocк.", rNome(playerid));
        SendClientMessage(PlayerID, Cinza, rString);
    }else{
        SetPlayerPos(playerid, X, Y, Z+2);
        SetPlayerInterior(playerid, GetPlayerInterior(PlayerID));
        format(rString, sizeof(rString), "{3cff00}Ч INFO Ч {FFFFFF}Vocк foi atй o jogador {FF0000}%s{FFFFFF}.", rNome(PlayerID));
        SendClientMessage(playerid, Cinza, rString);
        format(rString, sizeof(rString), "{3cff00}Ч INFO Ч {FFFFFF}O jogador {FF0000}%s{FFFFFF} se teleportou atй vocк.", rNome(playerid));
        SendClientMessage(PlayerID, Cinza, rString);
    }
    return 1;
}
Reply


Messages In This Thread
Erro Nos Comandos - by TheKoDaK - 09.07.2013, 18:23
Re: Erro Nos Comandos - by TheKoDaK - 09.07.2013, 19:07
Re: Erro Nos Comandos - by Aleex_Mason - 09.07.2013, 20:50
Re: Erro Nos Comandos - by TheKoDaK - 09.07.2013, 20:54
Re: Erro Nos Comandos - by TheKoDaK - 09.07.2013, 22:12
Re: Erro Nos Comandos - by Schocc - 10.07.2013, 00:24
Re: Erro Nos Comandos - by TheKoDaK - 10.07.2013, 00:26
Re: Erro Nos Comandos - by TheKoDaK - 10.07.2013, 00:49
Re: Erro Nos Comandos - by darkxdll - 10.07.2013, 01:01
Re: Erro Nos Comandos - by Schocc - 10.07.2013, 01:11

Forum Jump:


Users browsing this thread: 1 Guest(s)