Vehicle Ownership Help.
#2

What I did for mine was run everything off of vehicle IDs.

If you have already got a way of saving player stats then you can easily implement from there. Then once you've set that up, you could head down to your /start command and do an 'if' something like this:
Код:
new vid = GetPlayerVehicleID(playerid);
if(PlayerInfo[playerid][pVeh1] == vid)
{
     SendClientMessage(playerid, 0x33AA33AA, "* Your vehicle has started!");
     //Rest of your code here
}
else SendClientMessage(playerid, 0xFFFF00AA, "* You do not own this vehicle!");
Let me know if you need a further explanation.
Reply


Messages In This Thread
Vehicle Ownership Help. - by TaLhA XIV - 17.08.2012, 14:20
Re: Vehicle Ownership Help. - by aintaro - 17.08.2012, 14:42
Re: Vehicle Ownership Help. - by TaLhA XIV - 17.08.2012, 14:53
Re: Vehicle Ownership Help. - by TaLhA XIV - 17.08.2012, 15:31
Re: Vehicle Ownership Help. - by TaLhA XIV - 17.08.2012, 17:47

Forum Jump:


Users browsing this thread: 1 Guest(s)