Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Terminatorupgrade 2 on December 19, 2010, 10:30:34 am

Title: Head Shoot Reward In Pawno vcmp
Post by: Terminatorupgrade 2 on December 19, 2010, 10:30:34 am
Hi guys can any one give me the code of head shoot reward.i had made a Auto kick system for hax and max ping .please guys help me give me the Code of Head shoot reward in pawno code
thanks


Madara, Nacho_gb1 ,Skirmant'


+BIG THANKS TO  madara 8) 8) 8) 8) 8) 8) 8) 8)

Please any code of Head SHoot Reward?
Title: Re: Head Shoot Reward In Pawno vcmp
Post by: Scripter on December 19, 2010, 02:48:20 pm
and also for fbs.mirc
Title: Re: Head Shoot Reward In Pawno vcmp
Post by: [AoD]NC on December 19, 2010, 03:05:13 pm
You have to go to the signal/function where is on.player.kill. One of this parameters will be BodyPart, If I am not wrong, head's id is 5. Make a check if ( bodypart or what is the function name == 5 ) { reward here }, and it will work.
Title: Re: Head Shoot Reward In Pawno vcmp
Post by: Terminatorupgrade 2 on December 19, 2010, 04:06:34 pm
i need Code Dude Please .. :-[

 ??? ???
Quote
enum sInfo
{
   Countx,
   Echo,
   Rewardforhead,
   Drownforhelikill,
   Drownfordriveby
}

if(reason == 6) {
         if (ServerInfo[0][Rewardforhead] == 1) {
            format(string,256,"Head kill Reward:[ %s ] Reason:[ HEAD SHOOT ]",gPlayers[killerid]);
            SendClientMessageToAll(COLOR_GREEN,string);
            IncPlayerHandCash(killerid,1000);
            GameTextForPlayer(playerid,"Head Shot Reward",1000,1);
            

i know it is wrong but i need Code