21.03.2014, 09:18
You want it to eject you from the car if you're not a grove street member, and stay in the car if you are? If yes, then this is it:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(vehicleid) == grovesreigtasparnis)
if(PInfo[playerid][grove] == 0)
{
SendClientMessage(playerid, RAUDONA, "[Serveris]{4FB34D} Рis Transportas skirtas tik Grove Street Nariams!");
RemovePlayerFromVehicle(playerid);
}
if(PInfo[playerid][grove == 1)
{
SendClientMessage(playerid, ZALIA, "Sveiki Grove Street Nari!");
}
return 1;
}