17.08.2012, 14:42
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:
Let me know if you need a further explanation.
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!");