29.03.2014, 09:55
pawn Код:
if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
{
new vehicleid = GetPlayerVehicleID(playerid);
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.");
}
}
}
}