SA-MP Forums Archive
Car Ownership? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Car Ownership? (/showthread.php?tid=275575)



Car Ownership? - [JnA]DukeNukem - 10.08.2011

Ok, how can i make each car spawned have it's own id ??

please help!


Re: Car Ownership? - Jack_Leslie - 10.08.2011

It already has it's own ID when it spawns.

pawn Код:
if(strcmp(cmd,"/vehid",true) == 0)
    {
    new vehid = GetPlayerVehicleID(playerid);
    new string[20];
    format(string, sizeof(string), "Vehicle ID: %d", vehid);
    SendClientMessage(playerid, -1, string);
    return 1;
    }