[HELP] Death Window
#4

Rcon only. Needs editing to be user friendly.
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp("/cdw", cmdtext))
    {
        if( IsPlayerAdmin( playerid ) )//swap this for your admin variable if you have one
        {
            for(new i; i < 10; ++i)
            {
                SendDeathMessage( INVALID_PLAYER_ID, INVALID_PLAYER_ID, 200 );//connection icon
            }
            return 1;
        }
    }
    return 0;
}
EDIT: Some good advice: learn to use a better command processor. Look for y_commands or zcmd. With the OnPlayerCommandText/strcmp method the more commands you add the slower they will be. Each command you add will be slightly slower than the last one. (or take longer to get to might be more accurate)
Reply


Messages In This Thread
[HELP] Death Window - by Eiy Mard - 14.06.2012, 14:04
Re: [HELP] Death Window - by iggy1 - 14.06.2012, 14:10
Re: [HELP] Death Window - by Eiy Mard - 14.06.2012, 14:18
Re: [HELP] Death Window - by iggy1 - 14.06.2012, 14:24
Re: [HELP] Death Window - by Eiy Mard - 14.06.2012, 14:39

Forum Jump:


Users browsing this thread: 1 Guest(s)