29.08.2011, 02:16
assim no OnPlayerCommandText
OnPlayerExitVehicle
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;
}
pawn Code:
if(IsPlayerInAnyVehicle(playerid))
{
new destruir;
destruir = GetPlayerVehicleID(playerid))
DestroyVehicle(destruir);
return 1;
}