Quote:
Originally Posted by =>Sandra<=
Quote:
Originally Posted by Byrner
Quote:
Originally Posted by =>Sandra<=
@ Byrner:
Yes, it is possible:
I don't know what variable you use to store the name of the carowner, but for example:
Код:
new vehicleID = GetPlayerVehicleID(playerid);
if(PlayerNameIs(playerid, CarOwner[vehicleID]))
{
//the rest
}
|
Thanks,I was actually going to ask that :P
How would I save the owners name when he buys the car?
Thank you in advance,one of the best scripters on this site.
|
For Example:
//On top of your script:
Код:
new CarOwner[MAX_VEHICLES][MAX_PLAYER_NAME];
//@your /buycar command:
Код:
new vehicleID = GetPlayerVehicleID(playerid);
GetPlayerName(playerid, CarOwner[vehicleID], MAX_PLAYER_NAME);
|
Thank you very much,I will try that soon