11.05.2012, 01:15
You mean this.
pawn Code:
CMD:hbadge(playerid, params[])
{
if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)//May require change to fit Hitman. CHECK FIRST!
{
if(IsPlayerConnected(playerid))
{
if(isnull(params)) {
SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /hbadge [name]");
SendClientMessageEx(playerid, COLOR_RED, "Available names: SASD, LSPD, NG, FBO, Off");
return 1;
}
if(strcmp(params,"sasd",true) == 0)
{
SetPlayerColor(playerid, TEAM_SASD);
SendClientMessageEx(playerid, COLOR_WHITE, "Badge on.");
}
else if(strcmp(params,"lspd",true) == 0)
{
SetPlayerColor(playerid,TEAM_BLUE_COLOR);
SendClientMessageEx(playerid, COLOR_WHITE, "Badge on.");
}
else if(strcmp(params,"ng",true) == 0)
{
SetPlayerColor(playerid,COLOR_NG);
SendClientMessageEx(playerid, COLOR_WHITE, "Badge on.");
}
else if(strcmp(params,"fbi",true) == 0)
{
SetPlayerColor(playerid,TEAM_FBI_COLOR);
SendClientMessageEx(playerid, COLOR_WHITE, "Badge on.");
}
else if(strcmp(params,"off",true) == 0)
{
SetPlayerColor(playerid,TEAM_HIT_COLOR);
SendClientMessageEx(playerid, COLOR_WHITE, "You're badge has been removed");
}
}
}
return 1;
}