SA-MP Forums Archive
Off Duty and other skin? - 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: Off Duty and other skin? (/showthread.php?tid=83331)



Off Duty and other skin? - Namaco - 24.06.2009

Hello i wanted to ask a question is that possible to do for cops when they do /duty and they going off duty from cop skin they go to their civil skin?

if needed im using LA:RP


Re: Off Duty and other skin? - Stah - 24.06.2009

This is Possible:

Put this in the /duty command.
pawn Код:
SetPlayerSkin(playerid, CIVIL_SKIN); // change the CIVIL_SKIN to the skin you want the cop to change to.
Or

You can send the player to the skin selection when they do /duty.

Put this in the /duty command.
pawn Код:
ForceClassSelection(playerid);
SetPlayerHealth(playerid,0);

You can use one of the method above. I prefer the top method.


Re: Off Duty and other skin? - Namaco - 24.06.2009

Ok thanks its working!