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

assim no OnPlayerCommandText
pawn Code:
if(strcmp(cmd,"/infernus", true) == 0)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X,Y,Z);
CreateVehicle(411,X,Y,Z,0.0,-1,-1,-1);
return 1;
}
OnPlayerExitVehicle
pawn Code:
if(IsPlayerInAnyVehicle(playerid))
{
new destruir;
destruir = GetPlayerVehicleID(playerid))
DestroyVehicle(destruir);
return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)