Callback help & other things
#1

Hey guys I have a few questions...

In my script I have this callback, but when I /kill it doesn't work. What I'm trying to say is, when I do /kill, I want a message sent to the whole chat saying.

(name) has commited suicide using /kill

here it is.

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/kill", cmdtext, true, 10) == 0)
    {
        ClearAnimations(playerid,5);
        SetPlayerHealth(playerid,0);
        SendClientMessage(playerid,0xEAFF00FF,"You have commited sucide");
        SetPlayerScore(playerid, GetPlayerScore(playerid) - 2);
        new msg[128],
        suicider[MAX_PLAYER_NAME];
        GetPlayerName(playerid, suicider, sizeof suicider);
        format(msg, sizeof(msg), "%s has commited suicide using kill!", suicider);
        SendClientMessageToAll(0xFF0000FF, msg);
        return 1;
    }
And......

Is there a command that allows a admin to kill someone as a punishment?
If you know the code, could you please post it.

Thanks
Reply


Messages In This Thread
Callback help & other things - by Goldino - 18.11.2012, 14:10
Re: Callback help & other things - by Faisal_khan - 18.11.2012, 14:17
Re: Callback help & other things - by Goldino - 18.11.2012, 14:17
Re: Callback help & other things - by 2KY - 18.11.2012, 14:19
Re: Callback help & other things - by Konstantinos - 18.11.2012, 14:19
Re: Callback help & other things - by Goldino - 18.11.2012, 14:23
Re: Callback help & other things - by Konstantinos - 18.11.2012, 14:26
Re: Callback help & other things - by Goldino - 18.11.2012, 14:29
Re: Callback help & other things - by Goldino - 18.11.2012, 14:31
Re: Callback help & other things - by Konstantinos - 18.11.2012, 14:35

Forum Jump:


Users browsing this thread: 1 Guest(s)