Para mais informaзхes re-leiam a samp wiki, veja aqui.
https://sampwiki.blast.hk/wiki/Control_Structures
pawn Код:
new GroveCars[3]; // vocкs sabem contar?
GroveCars[0] = AddStaticVehicleEx(498,1245.00000000,-2038.00000000,60.09999847,0.00000000,93,93,600); //Boxville
GroveCars[1] = AddStaticVehicleEx(498,1276.30004883,-2038.00000000,60.00000000,0.00000000,93,93,600); //Boxville
GroveCars[2] = AddStaticVehicleEx(411,1276.19995117,-2010.50000000,58.79999924,178.00000000,93,1,600);
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) // funcionar aqui tбmbem...
{
if(GetPlayerVehicleID(playerid) >= GroveCars[0] || GetPlayerVehicleID(playerid) <= GroveCars[2]) // o correto seria assim, e nгo &&, pois && й usado apenas quando estб usando ambas as funзхes e atй onde eu sei, o jogador nгo pode entrar em 2 veнculos ao mesmo tempo.
{
if(gTeam[playerid] == Grove)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, -1, "Vo");
}
}
return 1;
}