[Tutorial] Simple Command [ZCMD] [Explained] [Better]
#3

pawn Code:
CMD:kill(playerid,params[])
{
    GameTextForPlayer(playerid,"Death In 5 Seconds",5000,1);
    SetTimer("Death",5000,false);
    return 1;
}
forward Death(playerid);
public Death(playerid)
{
    new string[128],name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    format(string,sizeof(string),"%s, Just committed suicide!",name);
    SendClientMessageToAll(-1,string);
    SetPlayerHealth(playerid,0);
    GameTextForPlayer(playerid,"Wasted!",5000,4);
    return 1;
}
I believe you're saying that this tutorial is better than other command tutorials even though you're supplying code that will not work such as the one I've listed here. You can guess the problem there..
Reply


Messages In This Thread
Simple Command [ZCMD] [Explained] [Better] - by Silentzx - 15.11.2011, 01:43
Re: Simple Command [ZCMD] [Explained] [Better] - by Kostas' - 15.11.2011, 04:05
Re: Simple Command [ZCMD] [Explained] [Better] - by Lorenc_ - 15.11.2011, 05:37
Re: Simple Command [ZCMD] [Explained] [Better] - by aRoach - 15.11.2011, 09:12

Forum Jump:


Users browsing this thread: 1 Guest(s)