25.07.2012, 05:50
My guess would be you have the array PlayerInfo assigned to MAX_PLAYERS with enumerator of pKeys.
So it would go.
So it would go.
pawn Код:
OnPlayerExitVehicle //bla bla
Lastcar[playerid] = vehicleid //bla blah
CMD:lock(playerid, params[])
{
if(lastcar[playerid] != PlayerInfo[playerid][pKeys]) return SendClientMessage(playerid, COLOR_WHITE, "You do not own that vehicle.");
else
{
//lock
}
return 1;
}