/badge,/hfind?
#1

where can i get /hfind,/badge script? for hitman.
if someone can give me and where i eneed to set this.
Reply
#2

Can you describe, to what use these commands need to be put to?
Reply
#3

/hfind its(hitman find) show where the id that you want go on small map its mark im with red color.
/hbadge (hitman badge) you show people fake badge like you say them that you from f.b.i then /fakebadge id.
and its show him that you rank 1-2-3-4-5-6 at fbi you can choose what rank you want to be in any faction.
Reply
#4

Quote:
Originally Posted by TomerDanan
Посмотреть сообщение
/hfind its(hitman find) show where the id that you want go on small map its mark im with red color.
Better you made it for detectives
Код:
CMD:find(playerid, params[])
{
	if(PlayerInfo[playerid][pJob] != 1 && PlayerInfo[playerid][pJob2] != 1)
	{
		SendClientMessageEx(playerid, COLOR_GREY, "You're not a detective.");
		return 1;
	}
	if(UsedFind[playerid])
	{
		SendClientMessageEx(playerid, COLOR_GREY, "You've already searched for someone - wait a little.");
		return 1;
	}

	new string[128], giveplayerid;
	if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /find [playerid]");

	if(IsPlayerConnected(giveplayerid))
	{
		if(giveplayerid == playerid) { SendClientMessageEx(playerid, COLOR_GREY, "You can't use this command on yourself."); return 1; }
		if(GetPlayerInterior(giveplayerid)!=0) { SendClientMessageEx(playerid, COLOR_GREY, "That person is inside an interior."); return 1; }
		if(PlayerInfo[giveplayerid][pAdmin] >= 2 && PlayerInfo[giveplayerid][pAdminDuty] == 1) { SendClientMessageEx(playerid, COLOR_GREY, "You are unable to find this person."); return 1; }
		new points;
		new reload;
		new level = PlayerInfo[playerid][pDetSkill];
		if(level >= 0 && level <= 50)
		{ points = 4; reload = 1; }
		else if(level >= 51 && level <= 100)
		{ points = 6; reload = 21; }
		else if(level >= 101 && level <= 200)
		{ points = 8; reload = 51; }
		else if(level >= 201 && level <= 400)
		{ points = 10; reload = 70; }
		else if(level >= 401)
		{ points = 12; reload = 110; }
		SetPlayerMarkerForPlayer(playerid, giveplayerid, FIND_COLOR);
		new zone[MAX_ZONE_NAME];
		GetPlayer3DZone(giveplayerid, zone, sizeof(zone));
		format(string, sizeof(string), "%s has been last seen at %s.", GetPlayerNameEx(giveplayerid), zone);
		SendClientMessageEx(playerid, COLOR_GRAD2, string);
		FindingPlayer[playerid]=giveplayerid;
		FindTime[playerid] = 1;
		FindTimePoints[playerid] = points;
		PlayerInfo[playerid][pDetSkill] ++;
		UsedFind[playerid] = reload;
		if(PlayerInfo[playerid][pDetSkill] == 50)
		{ SendClientMessageEx(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 2, you can find a little faster."); }
		else if(PlayerInfo[playerid][pDetSkill] == 100)
		{ SendClientMessageEx(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 3, you can find a little faster."); }
		else if(PlayerInfo[playerid][pDetSkill] == 200)
		{ SendClientMessageEx(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 4, you can find a little faster."); }
		else if(PlayerInfo[playerid][pDetSkill] == 400)
		{ SendClientMessageEx(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 5, you can find a little faster."); }
	}
	else
	{
		SendClientMessageEx(playerid, COLOR_GREY, "Invalid player specified.");
	}
	return 1;
}
Код:
CMD:hbadge(playerid, params[])// by Knight_Rider
{
    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;
}
Reply
#5

No man i dont what to use that for Detective i got Detective system i need /hfind if you dont what is it then dont send another things please.
Reply
#6

Quote:
Originally Posted by TomerDanan
Посмотреть сообщение
No man i dont what to use that for Detective i got Detective system i need /hfind if you dont what is it then dont send another things please.
Ok Buddy
Код:
CMD:hfind(playerid, params[])
{
	if(PlayerInfo[playerid][pFaction] != 8 )
	{
		SendClientMessageEx(playerid, COLOR_GREY, "You're not Hitman.");
		return 1;
	}
	if(UsedFind[playerid])
	{
		SendClientMessageEx(playerid, COLOR_GREY, "You've already searched for someone - wait a little.");
		return 1;
	}

	new string[128], giveplayerid;
	if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /hfind [playerid]");

	if(IsPlayerConnected(giveplayerid))
	{
		if(giveplayerid == playerid) { SendClientMessageEx(playerid, COLOR_GREY, "You can't use this command on yourself."); return 1; }
		if(GetPlayerInterior(giveplayerid)!=0) { SendClientMessageEx(playerid, COLOR_GREY, "That person is inside an interior."); return 1; }
		if(PlayerInfo[giveplayerid][pAdmin] >= 2 && PlayerInfo[giveplayerid][pAdminDuty] == 1) { SendClientMessageEx(playerid, COLOR_GREY, "You are unable to find this person."); return 1; }
		new points;
		new reload;
		SetPlayerMarkerForPlayer(playerid, giveplayerid, FIND_COLOR);
		new zone[MAX_ZONE_NAME];
		GetPlayer3DZone(giveplayerid, zone, sizeof(zone));
		format(string, sizeof(string), "%s has been last seen at %s.", GetPlayerNameEx(giveplayerid), zone);
		SendClientMessageEx(playerid, COLOR_GRAD2, string);
		FindingPlayer[playerid]=giveplayerid;
		FindTime[playerid] = 1;
		FindTimePoints[playerid] = points;
	else
	{
		SendClientMessageEx(playerid, COLOR_GREY, "Invalid player specified.");
	}
	return 1;
}
Reply
#7

Thanks Bro
I need to set this at filterscript?
Reply
#8

Quote:
Originally Posted by TomerDanan
Посмотреть сообщение
Thanks Bro
I need to set this at filterscript?
As your wish :O
Reply
#9

Dont know its not work when i write this in filterscript
Reply
#10

Quote:
Originally Posted by TomerDanan
Посмотреть сообщение
Dont know its not work when i write this in filterscript
Can you explain which?
Well
Код:
CMD:hfind(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] != 8)
    {
        SendClientMessageEx(playerid, COLOR_GREY, "You're not a Hitman.");
        return 1;
    }
    new string[128], giveplayerid;
    if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /hfind [playerid]");

    if(IsPlayerConnected(giveplayerid))
    {
        if(giveplayerid == playerid) { SendClientMessageEx(playerid, COLOR_GREY, "You can't use this command on yourself."); return 1; }
        if(GetPlayerInterior(giveplayerid)!=0) { SendClientMessageEx(playerid, COLOR_GREY, "That person is inside an interior."); return 1; }
        if(PlayerInfo[giveplayerid][pAdmin] >= 2 && PlayerInfo[giveplayerid][pAdminDuty] == 1) { SendClientMessageEx(playerid, COLOR_GREY, "You are unable to find this person."); return 1; }
        SetPlayerMarkerForPlayer(playerid, giveplayerid, FIND_COLOR);
        new zone[MAX_ZONE_NAME];
        GetPlayer3DZone(giveplayerid, zone, sizeof(zone));
        format(string, sizeof(string), "%s has been last seen at %s.", GetPlayerNameEx(giveplayerid), zone);
        SendClientMessageEx(playerid, COLOR_GRAD2, string);
        FindingPlayer[playerid]=giveplayerid;
        FindTime[playerid] = 3;
        SendClientMessageEx(playerid, COLOR_GREY, "Invalid player specified.");
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)