/badge Code - 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: /badge Code (
/showthread.php?tid=541257)
/badge Code -
DarkScimitar - 10.10.2014
Hi guys,
I am looking for the pawn code to go off duty and on duty using /badge
Re: /badge Code -
DarkScimitar - 10.10.2014
*awaiting Assistance*
Re: /badge Code -
dusk - 10.10.2014
pawn Код:
new bool:OnDuty[MAX_PLAYERS];
CMD:badge(playerid)
{
if(OnDuty[playerid]) SendClientMessage(playerid, 0xFF0000FF, "You went off duty");
else SendClientMessage(playerid,0x00FF00FF," You are now on duty.");
OnDuty[playerid] = !OnDuty[playerid];
return 1;
}
That's all we may right with the information you provide. In other words: you don't even know what you want.