CK script ( Character Kill )
#1

Hey,
So... today I got bored and decided to script some RP script

I'v just passed all important things, but now I want an admin CK command ( character kill ).
Well, when you do: /ack playerid , that player will be CKed.

but now, when I do /ack playerid, it will CK myself xD lolz.
this is the current scriptz0r: http://pastebin.com/d7b3fe9b6

Hope someone could fix it

Later
Reply
#2

pawn Code:
if(strcmp(cmd, "/ack", true) == 0)
    {
      if(IsPlayerConnected(playerid))
      {
        tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GREY, "USAGE: /ack [playerid]");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
           
          if(IsPlayerConnected(playerid))
           {
             if(PlayerInfo[playerid][pAdmin] < 3)
            {
                     PlayerInfo[playerid][pCK] = 1;
                 }
                else
                {
                  SendClientMessage(playerid,COLOR_GREY,"You'r not admin level 3 or higher! ");
               }
            }
           }
         
           return 1;

        }
Reply
#3

Sorry for the late response, but it's WORKING! yay.

Now, the only thing I need is:
When an admin writes /ack playerid, I want him to give a reason.
So, it has to be: /ack playerid reason.
Then EVERYONE in the server see's: '*Playername* Has been character killed by admin *adminname* with reason: *Reason*'
Reply
#4

Seif_.... your smart LOL
Reply
#5

Quote:
Originally Posted by Rickyboy30
Seif_.... your smart LOL
Have any truer words been spoken?
Reply
#6

Hehe, I will try it out today
Reply
#7

A character kill often means that the player will change his name.
This command shouldn't be there as a punishment, but as a
handy feature.

/ban and /kick, /warn etc.. Is there as punishment commands, so
a reason should not be needed.

Instead of making a Reason string, make a new name string;

/ack <playerid> <New_Name>

So It changes the name of the player.

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)