22.03.2013, 01:46
Let's say I make something like this at OnPlayerEnterVehicle.
How do I do if I want the passangers to be allowed to enter the cop vehicles?
pawn Код:
if(IsACopVehicle(vehicleid))
{
new Float:playerposx, Float:playerposy, Float:playerposz;
GetPlayerPos(playerid, playerposx, playerposy, playerposz);
if(PlayerInfo[playerid][pCop] == 0)
{
SetPlayerPos(playerid,playerposx, playerposy, playerposz);
}
}