CK script ( Character Kill ) -
Rickyboy30 - 12.11.2009
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
Re: CK script ( Character Kill ) -
Peter_Corneile - 12.11.2009
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;
}
Re: CK script ( Character Kill ) -
Rickyboy30 - 14.11.2009
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*'
Re: CK script ( Character Kill ) -
Rickyboy30 - 15.11.2009
Seif_.... your smart LOL
Re: CK script ( Character Kill ) -
DMSOrg - 15.11.2009
Quote:
|
Originally Posted by Rickyboy30
Seif_.... your smart LOL
|
Have any truer words been spoken?
Re: CK script ( Character Kill ) -
Rickyboy30 - 15.11.2009
Hehe, I will try it out today
Re: CK script ( Character Kill ) -
Mike Garber - 15.11.2009
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.