SA-MP Forums Archive
/car factionize - 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)
+--- Thread: /car factionize (/showthread.php?tid=376992)



/car factionize - BlueGames - 12.09.2012

Hi,
I have some bug with /car factionize cmd, When some one factionize some car he still have that car as slot number
Then he cant own more cars and i need open for him slots.
How can i make it auto remove from his slots, after /car factionize will remove one car
Thanks for helpers !


AW: /car factionize - BiosMarcel - 12.09.2012

N one can help you with this thread because you don't send us the mistake you only explain the mistake


Re: /car factionize - BlueGames - 12.09.2012

Well as i said, When some one want to factionize his own car ( make it faction car) he doing /car factionize then he made it owned by his faction but the car slot still stay owned on his car slots, on the GM u can own 4 cars so if he owned 4 cars and wanted factionze one so he still have 4 cars the car slot dont gone.


Re: /car factionize - justinnater - 12.09.2012

Add this at /car factionize:

Код:
				new minuscars = PlayerInfo[playerid][canhavecars];
				minuscars = minuscars-1;
				dUserSetINT(PlayerName(playerid)).("canhavecars",minuscars);
				PlayerInfo[playerid][canhavecars]=minuscars ;
If you get any errors/warnings or it dosn't works, ask me on skype.