- 0
Problema /gethit
-
Similar Content
-
- 1 answer
- 220 views
-
- 3 answers
- 337 views
-
- 3 replies
- 389 views
-
- 1 reply
- 347 views
-
- 1 answer
- 202 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
gamercs98
Problema intalnita (descriere): Cand dau /gethit apoi gen dau 1 pumn celui pe care este contractul spune ca l-am facut.
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu):
{
new id;
if(sscanf(params, "u", id)) return SCM(playerid, -1, "{00FF00}Folosire: {FFFFFF}/gethit [hitid]");
if(playerVariables[playerid][pGroup] == 12)
{
if(id != INVALID_PLAYER_ID)
{
if(playerVariables[id][pHeadValue] > 0)
{
if(GotHit[id] == 0)
{
if(GoChase[playerid] == 999)
{
GoChase[playerid] = id;
GetChased[id] = playerid;
GotHit[id] = 1;
format(szMessage, sizeof(szMessage), "%s received a contract. Target: %s.", playerVariables[playerid][pNormalName], playerVariables[id][pNormalName]);
SendToGroup(12, COLOR_TEAL, szMessage);
format(szMessage, sizeof(szMessage), "You have a new contract. (/mycontract)");
SCM(playerid, COLOR_YELLOW, szMessage);
}
else
{
SCM(playerid, COLOR_GREY, "You already have a hit!");
SCM(playerid, COLOR_GREY, "Solve the contract or type /cancelhit to take another hit!");
}
}
else
{
SCM(playerid, COLOR_GREY, "This hit has been taken by another Hitman!");
}
}
else
{
SCM(playerid, COLOR_GREY, "This player is not a hit!");
}
}
else
{
SCM(playerid, COLOR_GREY, "This player is not connected!");
}
}
return 1;
}
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da
Link to comment
Share on other sites
4 answers to this question
Recommended Posts