Police Command Help - 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 Command Help (
/showthread.php?tid=504189)
Police Command Help -
JordanSmith - 02.04.2014
Does anyone have /badge command for police?
Thanks!
__________________
Hostname: New Street's Life Roleplay [Refunding GVIP]
IP/Port: 91.121.237.252:7847
Players: 1/25
Game Mode: NSL:RP v2.6
Map: LS / LV
Server Version: 0.3z
Lagcomp: On
Website: Coming Soon!
Re: Police Command Help -
TrinityGamingRoleplay - 02.04.2014
http://lmgtfy.com/?q=sa-mp+%2Fbadge+filterscript
Re: Police Command Help -
MBilal - 02.04.2014
PHP код:
CMD:showbadge(playerid,params[])
{
new string[128],id;
if(sscanf(params, "d", id)) return SendClientMessage(playerid, COLOR_ORANGE, "USAGE: /showbadge id");
format(string,sizeof(string),"Officer %s Show his Badge To Player %s",GetName(playerid),GetName(id));
SendClientMessage(id,COLOR_GREEN,string);
return 1;
}
try not tested Yet
Re: Police Command Help -
Micheal123 - 02.04.2014
PHP код:
CMD:badge(playerid,params[])
{
new string[130],id;
if(sscanf(params, "d", id)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "USAGE: /showbadge id");
format(string,sizeof(string),"Officer %s Badge To Player %s",GetName(playerid),GetName(id));
SendClientMessage(id,COLOR_ORANGE,string);
return 1;
Re: Police Command Help -
Abagail - 02.04.2014
CMD:badge(playerid, params[])
{
if(GetPlayerSkin != 280) return 0;
SetPlayerColor(playerid, COLOR_COP);
SendClientMessage(playerid, -1, "You have applied your badge.");
}
Just replace COLOR_COP with the color you want it to show.