14.09.2015, 17:04
Код:
PlayerPrivateVehicle[???][name]=CreateVehicle(....
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(vechileid==PlayerPrivateVehicle[???][name]) { new string[64]; format(string, sizeof(string),This car is owned by %s", name); SendClientMessage(playerid, -1, string); } return 1; }
Код:
for(new i; i<MAX_VEHICLES; i++) { if(PlayerPrivateVehicle[i][name]==0){ PlayerPrivateVehicle[i][name]=CreateVehicle(....);} }