02/01/2022 02:49
'-' sem explicação alguma fica dificil '-'
Código PHP:
new
teste1[MAX_PLAYERS],
teste2[MAX_PLAYERS];
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1882.2751,-2634.5898,13.5469) || IsPlayerInRangeOfPoint(playerid, 2.0, 1174.2777,1352.8175,10.9219))
{
if(teste1[playerid] || teste2[playerid]) return 0;
if(newkeys & KEY_YES)
{
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;
}