07.02.2009, 15:55
Either make a param for the players username and only the username owns it, or give each vehicle a SPECIAL ID and that SPECIAL ID is the key, so to check what vehicle it is, you can easily do:
this was just a little example and then you'll find out who owns that vehicle ID and can easily lock and unlock vehicles, also as a suggestion, if you do that, they may flood your cmds, so you should always GetTickCount and check if he uses the command in a distance from for example 3 seconds.
pawn Код:
for(new i = 0; i < MAX_VEHICLES; i++)
{
if(CheckIfOwnedByPlayer(playerid, vehicleid))
// ....