23.08.2016, 17:34
Combining the two makes it:
and something I noticed. In /givehit you have both "IDs" and "IDsa" and if those two are two different variables, they will most likely bug it.
PS: Change the values of "pDatameta" to match yours as in the first post and your post with the whole code, they are switched.
PHP код:
if (killerid != INVALID_PLAYER_ID && PlayerInfo[killerid][pDatameta] == 1)
{
if (PlayerInfo[playerid][pHitmenCena] > 0 && (PlayerInfo[killerid][pMember] == 17 || PlayerInfo[killerid][pLeader] == 17) && HitmanInfo[killerid][GoChase] == playerid)
{
GivePlayerMoney(killerid, PlayerInfo[playerid][pHitmenCena]);
format(globalstring, sizeof(globalstring), "{FFFFFF}Hitman %s je izvrsio svoju narudzbu %s i zaradio %d rsd.", ImeIgraca(killerid), ImeIgraca(playerid), PlayerInfo[playerid][pHitmenCena]);
SendFamilyMessage(17, 0xFF0000FF, globalstring);
format(string, sizeof(string), "Ubijeni ste od strane HITMANA");
SCM(playerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "|Hitman| %s je ubio: %s", ImeIgraca(killerid), ImeIgraca(playerid));
PosaljiAdminima(COLOR_LIGHTRED, string);
PlayerInfo[playerid][pHitmenCena] = 0;
HitmanInfo[killerid][GoChase] = 999;
HitmanInfo[playerid][GetChased] = 999;
HitmanInfo[playerid][GotHit] = 0;
PlayerInfo[killerid][pDatameta] = 0;
DisablePlayerCheckpoint(playerid);
DisablePlayerCheckpoint(killerid);
SearchNadji[playerid] = -1;
SearchNadji[killerid] = -1;
PlayerInfo[playerid][pPlacen] = 0;
PlayerInfo[killerid][pPlacen] = 0;
}
else
{
if (!IsACop(killerid))
{
WantedLevel[killerid] += 2;
SetPlayerCriminal(killerid, 255, "Prvostepeno Ubistvo");
}
}
}
PS: Change the values of "pDatameta" to match yours as in the first post and your post with the whole code, they are switched.