- 0
Problema /gethit
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
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
4 answers to this question
Recommended Posts