Army only skins? - 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: Army only skins? (
/showthread.php?tid=127476)
Army only skins? -
bajskorv123 - 13.02.2010
Hello, I'm looking for a command that puts someone in The Army so they can use The Army Skin. (Classid 0)
If possible it should save, so the player will still be in The Army if he disconnects or the server restarts.
I already have a registration system. (I am using Dudb)
Command:
/makesoldier [PlayerID] - Puts the player into The Army, giving ability to use The Army Skin.
Here is an example:
First I type /makesoldier 3 - Putting ID 3 into The Army.
If the player is not in The Army he can not use The Army Skin. (Classid 0)
If the player is in The Army he can use The Army Skin. (Classid 0)
When the player who is in The Army disconnects, it will save into his save file.
When the server restarts, all who is in the army will get saved into their save files.
Well I think that was all and I certainly hope that someone can make this for me.
Peace
Re: Admin only skins? -
Chivava - 13.02.2010
Just make something alike if(PlayerInfo[playerid][pArmy] >=1 )
else return 1;
Re: Admin only skins? -
bajskorv123 - 13.02.2010
And how to save it etc.
Please come up with something better
Re: Admin only skins? -
bajskorv123 - 14.02.2010
Bump
Re: Army only skins? -
bajskorv123 - 15.02.2010
Bump...
Re: Army only skins? -
aNdReSkKkK - 15.02.2010
if u have a register system u sure save bank info and stuff. just save the skin id, and if player has a skin different than 0, then set his skin on spawn