12.06.2013, 11:04
Can someone explain me how car ownership works?
I had idea to write players name to car
Like
if(owner[vehicleid] == GetPlayerName(playerid))
{
SCM(playerid,-1,"Welcome to your car");
But in this case if player changes his name he will lose all of his cars
Idea nr. two was to give each player like his id randomly which will never change and write cars to his ID
If this will work then can someone explain me how can i give theese id randomly to each player?
I had idea to write players name to car
Like
if(owner[vehicleid] == GetPlayerName(playerid))
{
SCM(playerid,-1,"Welcome to your car");
But in this case if player changes his name he will lose all of his cars
Idea nr. two was to give each player like his id randomly which will never change and write cars to his ID
If this will work then can someone explain me how can i give theese id randomly to each player?