05.08.2014, 00:39
I dont really understand what should I do in the Pawno, could you tell me where exacly I need to put that script?
Btw:
hitman command :
CMD:givemehit(playerid, params[])
{
if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
new string[128], targetid;
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givemehit [targetid]");
if(IsPlayerConnected(targetid))
{
if(GoChase[playerid] < 999)
{
SendClientMessage(playerid, COLOR_GREY, " You're already busy with another contract!");
return 1;
}
if(GotHit[targetid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Another hitman has already assigned this target!");
return 1;
}
if(PlayerInfo[targetid][pHeadValue] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " That target doesn't have a contract on them!");
return 1;
}
format(string, sizeof(string), "* You have offered yourself a contract to kill %s. (type /accept contract)", GetPlayerNameEx(targetid));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
HitOffer[playerid] = playerid;
HitToGet[playerid] = targetid;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " The contracted person is offline, use /contracts!");
return 1;
}
}
return 1;
}
Btw:
hitman command :
CMD:givemehit(playerid, params[])
{
if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
new string[128], targetid;
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givemehit [targetid]");
if(IsPlayerConnected(targetid))
{
if(GoChase[playerid] < 999)
{
SendClientMessage(playerid, COLOR_GREY, " You're already busy with another contract!");
return 1;
}
if(GotHit[targetid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Another hitman has already assigned this target!");
return 1;
}
if(PlayerInfo[targetid][pHeadValue] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " That target doesn't have a contract on them!");
return 1;
}
format(string, sizeof(string), "* You have offered yourself a contract to kill %s. (type /accept contract)", GetPlayerNameEx(targetid));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
HitOffer[playerid] = playerid;
HitToGet[playerid] = targetid;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " The contracted person is offline, use /contracts!");
return 1;
}
}
return 1;
}