[Pedido]Carro Blindado
#6

Pronto:
pawn Код:
//TOPO DO GM
new bool:Blindado[MAX_PLAYERS];
forward Desblindar(playerid);

//FIM DO GM
public OnVehicleDamageStatusUpdate(vehicleid,playerid)
{
    new Float:Vida;
    if(Blindado[playerid] == true)
    {
        if(GetVehicleHealth(vehicleid, Vida) < 1000)
        RepairVehicle(vehicleid);
        return 1;
    }
    return 1;
}
public Desblindar(playerid)
{
    Blindado[playerid] = false;
    SendClientMessage(playerid, -1, "DESBLINDADO");
    return 1;
}

//ONPLAYERCOMMANDTEXT
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/blindar", cmdtext, true, 10) == 0)
    {
        if(Blindado[playerid] == true)
        {
            SendClientMessage(playerid, -1, "Jб estб blindado!");
            return 1;
        }
        SendClientMessage(playerid, -1, "BLINDADO");
        Blindado[playerid] = true;
        SetTimerEx("Desblindar", 1000*60*5, false, "i", playerid);
        return 1;
    }
    return 0;
}
Use como base..
Reply


Messages In This Thread
[Pedido]Carro Blindado - by Felipe_Wesker - 09.04.2012, 16:27
Re: [Pedido]Carro Blindado - by CidadeNovaRP - 09.04.2012, 16:45
Re: [Pedido]Carro Blindado - by ViniBorn - 09.04.2012, 16:49
Re: [Pedido]Carro Blindado - by Felipe_Wesker - 09.04.2012, 16:54
Re: [Pedido]Carro Blindado - by ViniBorn - 09.04.2012, 16:56
Re: [Pedido]Carro Blindado - by CidadeNovaRP - 09.04.2012, 17:00
Re: [Pedido]Carro Blindado - by zbt - 09.04.2012, 17:01
Re: [Pedido]Carro Blindado - by Felipe_Wesker - 09.04.2012, 17:02
Re: [Pedido]Carro Blindado - by CidadeNovaRP - 09.04.2012, 17:03
Re: [Pedido]Carro Blindado - by Felipe_Wesker - 09.04.2012, 18:19

Forum Jump:


Users browsing this thread: 1 Guest(s)