Hitman System
#3

Now when i take the hit with /givehit [id] command it will not give him wanted level which is good, But when i use command /givehit [id] and when i kill the player with hit on him, it won't give me money for completing the contract also it won't show me in a chat that I have fulfilled the contract and earned money.

Код:
if(killerid != INVALID_PLAYER_ID && PlayerInfo[ killerid ][ pDatameta ] == 0) {
		if( PlayerInfo[ playerid ][ pHitmenCena ] > 0) {
			if(PlayerInfo[killerid][pMember] == 17 || PlayerInfo[killerid][pLeader] == 17) {
				if( 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 ] = 1;
				DisablePlayerCheckpoint( playerid );
				DisablePlayerCheckpoint( killerid );
				SearchNadji[ playerid ] = -1;
   				SearchNadji[ killerid ] = -1;
   				PlayerInfo[ playerid ] [ pPlacen ] = 0;
   				PlayerInfo[ killerid ] [ pPlacen ] = 0;
				}
			}
		}
	}
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: 1 Guest(s)