The /akill maded by me with 10 seconds, for the power of the admins! -
Mr.Obscure - 03.08.2010
pawn Код:
//--------------------------------[akill]---------------------------------------------------------------------
if(strcmp(cmd, "/akill", true) == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
tmp = strtok(cmdtext, idx);
if(!strlen(tmp) && PlayerInfo[playerid][pAdmin] >= 4)
{
SendClientMessage(playerid, COLOR_GREY, "/akill [Playerid]");
return 1;
}
giveplayerid = strval(tmp);
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(IsPlayerConnected(giveplayerid))
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(giveplayerid))
{
format(string, sizeof(string), "AdmCMD: %s has killed by %s",giveplayer, sendername);
ABroadCast(COLOR_LIGHTRED,string,1);
//SendClientMessageToAll(COLOR_DBLUE, string);
SetPlayerHealth(giveplayerid, 0);
new Float:boomx, Float:boomy, Float:boomz;
GetPlayerPos(giveplayerid,boomx, boomy, boomz);
//CreateExplosion(boomx, boomy , boomz, 7, 10);
printf("[Command] %s has used /akill to kill %s", PlayerName(playerid), giveplayer);
}
else
{
format(string, sizeof(string), "%d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "You do not have permission to use that command!");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "You Must be logged in to use this command!");
}
return 1;
}
Re: The /akill maded by me with 10 seconds, for the power of the admins! -
Kitten - 03.08.2010
nice in 10 sec i can jump down from a building muahaha
Re: The /akill maded by me with 10 seconds, for the power of the admins! -
Kar - 03.08.2010
you typed all that in 10 seconds. ..cough...verynice..
/facepalm
Re: The /akill maded by me with 10 seconds, for the power of the admins! -
Kitten - 03.08.2010
it takes 10 sec for me to make SendClientMessageToAll(COLOR_RED,"Hi There Is This my 10 sec command ahahahahahhaahahahah
?");
and this topic replying 20 sec
Re: The /akill maded by me with 10 seconds, for the power of the admins! -
(.Aztec); - 03.08.2010
/facepalm
You mean you downloaded a script in the Gamemodes section, found this command, and copy-pasted it here?
Or there's a second option: You DID create this command, but it DEFINATELY took longer than 10 seconds, because me typing this little speel took 10 seconds.
Re: The /akill maded by me with 10 seconds, for the power of the admins! -
Hamza' - 03.08.2010
I type first "if" in 10 Seconds
Re: The /akill maded by me with 10 seconds, for the power of the admins! -
Mr.Obscure - 25.08.2010
so i create it with 10s, but for typing i has needed 1m :asd:
Re: The /akill maded by me with 10 seconds, for the power of the admins! -
Pawno_Master - 25.08.2010
Why do you even post it here, this is not really the place for a show-off section.
Re: The /akill maded by me with 10 seconds, for the power of the admins! -
playbox12 - 25.08.2010
Also, I bet you just copy and pasted it from an GM
*kuch*
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 4)
*kuch*
Re: The /akill maded by me with 10 seconds, for the power of the admins! -
Vince - 25.08.2010
Copied from Godfather or one of the many, many edits. Obviously.
Quote:
Originally Posted by Mr.Obscure
pawn Код:
ABroadCast(COLOR_LIGHTRED,string,1);
|
And even then, I could write this function in 10 lines.
Stupid bump, by the way.