29.03.2014, 09:45
Could someone edit my OnPLayerEnterVehicle
And make it not let them inside if they try to drive it, but passengers allowed..
Make into ONPlayerStateChange
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
for(new i = 0; i < 12; i++)
{
new pFac = PlayerInfo[playerid][pMember];
if(vehicleid == LSPDVehicles[i])
{
if(pFac != 1)
{
ClearAnimations(playerid);
SendClientMessage(playerid, -1, "You don`t have the keys for this car.");
}
}
}
return 1;
}
Make into ONPlayerStateChange