[PEDIDOS] drift
#3

pawn Код:
if(strcmp(cmdtext, "/flip", true) == 0)
{
    new Float:X, Float:Y, Float:Z;
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetCameraBehindPlayer(playerid);
        GetPlayerPos(playerid, X, Y, Z);
        SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
    }
    return 1;
}

if (!strcmp("/reparar", cmdtext))
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        RepairVehicle(GetPlayerVehicleID(playerid));
        SendClientMessage(playerid, -1 "Seu Veiculo Foi Reparado!");
    }
    else SendClientMessage(playerid,-1, "Voce nao estб no veiculo!");
    return 1;
}

if(!strcmp("/nitro",cmdtext))
{
if(IsPlayerInAnyVehicle(playerid)) return NitroInfinito(playerid);
else SendClientMessage(playerid,-1,"Vocк nгo esta em um veiculo");
}

forward NitroInfinito(playerid);
public NitroInfinito(playerid)
{
    AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
    SetTimerEx("NitroInfinito",10000,0,"i",playerid);
    return 0;
}
Esta ai tudo (: espero ter ajudado, agora espero que vocк seja amigo e me de reputaзгo ()
Reply


Messages In This Thread
[PEDIDOS] drift - by guilhermegtu - 18.09.2011, 15:34
Re: [PEDIDOS] drift - by Bruno Pereira - 18.09.2011, 15:37
Re: [PEDIDOS] drift - by RebeloX - 18.09.2011, 15:46
Re: [PEDIDOS] drift - by [O.z]Caroline - 18.09.2011, 16:16
Re: [PEDIDOS] drift - by guilhermegtu - 18.09.2011, 16:21
Re: [PEDIDOS] drift - by guilhermegtu - 18.09.2011, 16:29
Re: [PEDIDOS] drift - by [O.z]Caroline - 18.09.2011, 16:32
Re: [PEDIDOS] drift - by guilhermegtu - 18.09.2011, 16:35

Forum Jump:


Users browsing this thread: 1 Guest(s)