Jump to content
  • 0

A little mod :)


Question

Posted (edited)

So i have my own script here long ago. Lol

-	script	cool	-1,{
OnPCDieEvent:
dispbottom "OMG! you got PAWN! Ressurect and PAWN him back!";
close;
end;

if(getgmlevel() < 10) {
OnPCLoginEvent:
mes "^ff0000[Welcome]^000000";
mes "Hello ^ff0000"+strcharinfo(0)+"^000000,";
close;
}
end;
}

I wanna mod it a little bit.

dispbottom "OMG! you got PAWN! Ressurect and PAWN him back!";

i wanted that part to be like this:

dispbottom "OMG! (THE KILLER) killed you! Ressurect and PAWN him back!";

It will display the player who killed you :3

I know its just a noob request but i really dont know lol /oops/hum

im a noob scripter so i really need help lol /oops/ok

Thanks in advance :3

Edit:

If the player killed him self, it will say "You've committed suicide :3"

Edited by MrVandalBus

2 answers to this question

Recommended Posts

Posted (edited)
// Kindly VOTE UP my post if I helped.
// Edit By: Anubis
// Script By: MrVandalBus
- script Cool_Mod -1,{
OnPCDieEvent:
set .@killer$,rid2name(killerrid);
if (.@killer$ == strcharinfo(0))  {
dispbottom "You've commited suicide."; end;
} else {
dispbottom "OMG! " + .@killer$ + " killed you! Ressurect and PAWN him back!"; end; }
OnPCLoginEvent:
if(getgmlevel() == 0) {
mes "^ff0000[Welcome]^000000";
mes "Hello ^ff0000"+strcharinfo(0)+"^000000,";
close; }
}

Edited by Anubis
  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...