(30/12/2021 16:11)uyk Escreveu: Amigo, testei aqui e não funcionou.
Código:
new teste1[MAX_PLAYERS], teste2[MAX_PLAYERS];
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_YES && (IsPlayerInRangeOfPoint(playerid, 2.0, 1882.2751,-2634.5898,13.5469) || IsPlayerInRangeOfPoint(playerid, 2.0, 1174.2777,1352.8175,10.9219)))
{
if(teste1[playerid] <= 0 || teste2[playerid] <= 0)
return 1;
new Float:Pos[3], MV;
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
MV = CreateVehicle(411, Pos[0], Pos[1], Pos[2], 360, -1, -1, -1);
PutPlayerInVehicle(playerid, MV, 0);
}
return 1;
}