[AJUDA] Quando player sair do veiculo automaticamente destruir!
#10

Como tu uso no code do shadoww5, sу colocar assim...
pawn Code:
new Ccarro;

if (strcmp(cmdtext, "/infernus", true)==0)
{
     if(Ccarro == 0)
    {
        new Float:X, Float:Y, Float:Z ;
        GetPlayerPos(playerid, X, Y, Z);
        SetPVarInt(playerid, "Car", CreateVehicle(411, X, Y, Z, 0.0, -1, -1, -1));
        Ccarro = 1;
    }
    if(Ccarro == 1) return SendClientMessage(playerid,-1,"Vocк jб criou um carro");
    return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(vehicleid == GetPVarInt(playerid, "Car"))
    {
        DestroyVehicle(vehicleid);
        DeletePVar(playerid, "Car");
        Ccarro = 0;
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)