SA-MP Forums Archive
Police Tools For Police 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)
+--- Thread: Police Tools For Police Skin (/showthread.php?tid=441324)



Police Tools For Police Skin - Farshid1994 - 02.06.2013

Hey guys , i need to set some commands for Only police skins such as 280
i use LuxAdmin
Samp 3x
And this is the Filterscript i need to set its command For police skin = https://sampforum.blast.hk/showthread.php?tid=320458
Thanks


Re: Police Tools For Police Skin - bensmart469 - 02.06.2013

PHP Code:
//under your cmd
if(GetPlayerSkin(playerid) != 280) return 0// I used return 0; but you can use return SendClientMessage(playerid,0xFFFFFFFF,"You aren't a cop!"); 



Re: Police Tools For Police Skin - MP2 - 02.06.2013

No - don't use return 0. That will show the 'SERVER: Unknown Command' message.


Re: Police Tools For Police Skin - bensmart469 - 02.06.2013

That could be useful if he plans to keep the command hidden for those people only, but he has the choice. Either SendClientMessage or return 0;