16.12.2014, 02:49
Its better to store/load/delete data of playervehicle using his UniqueID.. i.e., DataBase ID.. Load the ID when he joins.. If you compare it with his name, it may/might cause issues if his name was changed IG and his login name was different etc etc.. Unique wont change, so better..
PHP код:
if(VehInfo[VehID][OwnDBID]==pInfo[playerid][DBID])
{
DoRest
}
else
{
Vehicle: Bro, you dont own me.
}