Hitman System
#9

Combining the two makes it:
PHP код:
if (killerid != INVALID_PLAYER_ID && PlayerInfo[killerid][pDatameta] == 1)
{
    if (
PlayerInfo[playerid][pHitmenCena] > && (PlayerInfo[killerid][pMember] == 17 || PlayerInfo[killerid][pLeader] == 17) && HitmanInfo[killerid][GoChase] == playerid)
    {
        
GivePlayerMoney(killeridPlayerInfo[playerid][pHitmenCena]);
        
format(globalstringsizeof(globalstring), "{FFFFFF}Hitman %s je izvrsio svoju narudzbu %s i zaradio %d rsd."ImeIgraca(killerid), ImeIgraca(playerid), PlayerInfo[playerid][pHitmenCena]);
        
SendFamilyMessage(170xFF0000FFglobalstring);
        
format(stringsizeof(string), "Ubijeni ste od strane HITMANA");
        
SCM(playeridCOLOR_LIGHTREDstring);
        
format(stringsizeof(string), "|Hitman| %s je ubio: %s"ImeIgraca(killerid), ImeIgraca(playerid));
        
PosaljiAdminima(COLOR_LIGHTREDstring);
        
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(killerid255"Prvostepeno Ubistvo");
        }
    }

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.
Reply


Messages In This Thread
Hitman System - by Markoni990 - 23.08.2016, 01:26
Re: Hitman System - by Shinja - 23.08.2016, 01:33
Re: Hitman System - by Markoni990 - 23.08.2016, 15:25
Re: Hitman System - by Shinja - 23.08.2016, 16:27
Re: Hitman System - by Markoni990 - 23.08.2016, 16:34
Re: Hitman System - by Shinja - 23.08.2016, 16:37
Re: Hitman System - by Konstantinos - 23.08.2016, 16:37
Re: Hitman System - by Markoni990 - 23.08.2016, 17:09
Re: Hitman System - by Konstantinos - 23.08.2016, 17:34
Re: Hitman System - by Markoni990 - 23.08.2016, 18:35

Forum Jump:


Users browsing this thread: 3 Guest(s)