05/08/2022 11:07
Código:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(IsPlayerInAnyVehicle(playerid) && IsARCVehicle(playerid))
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, Float:x, Float:y, Float:z);
SetPlayerPos(playerid, Float:x, Float:y, Float:z);
SendClientMessage(playerid, -1, "* Você saiu do brinquedo.");
}
}
return 1;
}
stock IsARCVehicle(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
switch(GetVehicleModel(vehicleid))
{
case 441, 464, 465, 501, 564, 594:
return 1;
}
return 0;
}
Dessa forma irá funcionar.