Dcmd problem
#3

Quote:
Originally Posted by kickflipdude
Посмотреть сообщение
why do it there? why not just do this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/kill", cmdtext, true, 10) == 0)
    {
        SetPlayerHealth(playerid, 0);
        SendClientMessage(playerid, 0xC2A2DAAA, "You Have Comitted Suicide");
        return 1;
    }
    return 0;
}
Compile! And your done!
I aint a script begginer, i make a admin script in my gamemode, and the /kill command was just an example. I need the sollution of this.
Reply


Messages In This Thread
Dcmd problem - by Markx - 30.03.2011, 16:34
Re: Dcmd problem - by kickflipdude - 30.03.2011, 16:36
Re: Dcmd problem - by Markx - 30.03.2011, 16:37
Re: Dcmd problem - by WillyP - 30.03.2011, 16:38
Re: Dcmd problem - by kickflipdude - 30.03.2011, 16:39
Re: Dcmd problem - by xir - 30.03.2011, 16:39
Re: Dcmd problem - by Markx - 30.03.2011, 17:19
Re: Dcmd problem - by xir - 30.03.2011, 17:20
Re: Dcmd problem - by Markx - 30.03.2011, 17:21
Re: Dcmd problem - by Markx - 30.03.2011, 17:45
Re: Dcmd problem - by aircombat - 30.03.2011, 17:59
Re: Dcmd problem - by Markx - 30.03.2011, 18:04
Re: Dcmd problem - by Markx - 06.04.2011, 16:28

Forum Jump:


Users browsing this thread: 1 Guest(s)