SA-MP Forums Archive
Get player name / lock vehicle - 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: Get player name / lock vehicle (/showthread.php?tid=132374)



Get player name / lock vehicle - graetz - 07.03.2010

Hello, how to make lock system who willl check player name
Somethig like this
Код:
for(new i; i != MAX_VEHICLES; i++)
  			{
   			new dist = CheckPlayerDistanceToVehicle(3.5, playerid, i);
	    	if(dist)
		    {
Код:
if(DynamicCars[carid][vOwnerName] player name
and if [vOwnerName] is not that player name then it will show text you dont own this vehicle