The /akill maded by me with 10 seconds, for the power of the admins!
#1

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;
       }
Reply
#2

nice in 10 sec i can jump down from a building muahaha
Reply
#3

you typed all that in 10 seconds. ..cough...verynice..

/facepalm
Reply
#4

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
Reply
#5

/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.
Reply
#6

I type first "if" in 10 Seconds
Reply
#7

so i create it with 10s, but for typing i has needed 1m :asd:
Reply
#8

Why do you even post it here, this is not really the place for a show-off section.
Reply
#9

Also, I bet you just copy and pasted it from an GM

*kuch*
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 4)
*kuch*
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)