Police Command Help
#1

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!
Reply
#2

http://lmgtfy.com/?q=sa-mp+%2Fbadge+filterscript
Reply
#3

PHP код:
CMD:showbadge(playerid,params[])
{
    new 
string[128],id;
    if(
sscanf(params"d"id)) return SendClientMessage(playeridCOLOR_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
Reply
#4

PHP код:
CMD:badge(playerid,params[]) 

    new 
string[130],id
    if(
sscanf(params"d"id)) return SendClientMessage(playeridCOLOR_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
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)