I help develop a command - 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: I help develop a command (
/showthread.php?tid=575554)
I help develop a command -
Joseito - 28.05.2015
їWhat system try to develop?
I created a system that works with the faction system, which work by id vehicles, eg cars are loaded and have id 0-50 will of the police faction.
їWhat problem I have?
I try to perform a command that works as follows in which only the leader has access to the /Assigned [playerid][idcar][SLOT1-4] that command, I need your help How to do it? , so that when the leader of example only pFaction = 1 can allocate vehicles with id of 1-50 and then if the leader of the Faction = 2 only to the 50-100 and so then, which slots are these
PHP код:
pAssigned[0]
pAssigned[1]
pAssigned[2]
pAssigned[3]
Note:Sorry for my bad English
Re: I help develop a command -
SickAttack - 28.05.2015
I don't really get what you're trying to say.
pawn Код:
new range_start = (50 * (pFaction - 1)), range_end = (50 * (pFaction - 1)) + 50;