Author Topic: SetDeathMessage / SendDeathMessage  (Read 4214 times)

0 Members and 1 Guest are viewing this topic.

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
SetDeathMessage / SendDeathMessage
« on: August 01, 2012, 12:21:44 am »
SetDeathMessage / SendDeathMessage


You can stop the Death Message to appear very simple.

In a_vcmp.inc from "gamemodes" directory is mentioned this functions:


Code: [Select]
native SetDeathMessage(bool);
So ... I added it on "a_vcmp.inc" from "Include" from Pawno Directory and ... I tested it and ..

Work !!

What is this "Death Message" ?

Death Message = text when a player die.


">>Elvis died."

">>Elvis killed Chuck (Palm) (Face)"

">>Elvis killed team-mate Michael (M4) (Eggs)"



I made 2 commands to Turn ON and Turn OFF the Death Message

Add this on the top:


Code: [Select]
new Death;
Add this at OnPlayerCommandText:

Start Death Message Command:


Code: [Select]
else if(strcmp(cmd, "startdeath", true) == 0) {
    if(Death == 1) SendClientMessage(playerid,COLOR_RED,"Death Message are already started !");
    else {
        SendClientMessageToAll(COLOR_YELLOW,"Death Message is Started now !");
        print("Death Message is Started now !");
    SetDeathMessage(1);
    Death = 1;
}
    return 1;
}

Stop Death Message Command:

Code: [Select]
else if(strcmp(cmd, "stopdeath", true) == 0) {
    if(Death == 0) SendClientMessage(playerid,COLOR_RED,"Death Message are already stopped !");
    else {
        SendClientMessageToAll(COLOR_YELLOW,"Death Message is Stopped now !");
        print("Death Message is Stopped now !");
    SetDeathMessage(0);
    Death = 0;
}
    return 1;
}


SendDeathMessage - Is very simple to use it .

You can put it at OnPlayerDeath. (for a double death message if is on)


Code: [Select]
SendDeathMessage(playerid,weapon,killerid,type,bodypart);
I tested the types (with numbers) :

type = 1 => ">>%s killed %s (Weapon Name) (BodyPart)."

type = 2 => ">>%s killed team-mate %s (Weapon Name) (BodyPart)."

type = 3 => ">>%s died."

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline [KB]ViceMania

  • Wiseguy
  • **
  • Posts: 53
  • Mega War server administrator
    • View Profile
Re: SetDeathMessage / SendDeathMessage
« Reply #1 on: October 29, 2012, 11:10:36 pm »
good job :P

Offline JackDawZ

  • Street Thug
  • *
  • Posts: 23
    • View Profile
Re: SetDeathMessage / SendDeathMessage
« Reply #2 on: October 30, 2012, 01:11:10 am »
Nice  ;)
Proud member of TRC since 28th January of 2013, LGS, XE-Servers, Extreme Addicts Moderator.




Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: SetDeathMessage / SendDeathMessage
« Reply #3 on: December 06, 2012, 11:59:28 am »
is it work on gups
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol