Just a simple example :)
#1

How can I make a simple command that kills the player of the id I put in? Something like, I type /kill 1, and player with id 1 gets killed.... example anyone??

Thanks!
Reply
#2

ZCMD,DCMD or Strotck?

if you use ZCMD, there is:
pawn Код:
CMD:kill(playerid,params[])
{
    new id;
    if(sscanf(params, "u", id)) SendClientMessage(playerid,comandos,"USAGE: /kill [ID/NAME]");
    else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid,comandos, "Player not found");
    else
    {
        if(!IsPlayerAdmin(playerid)) return 1;
        SetPlayerHealth(id,0.0);
       SendClienMessage(playerid,green, "You have been teleported");
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)