07.09.2010, 15:34
how do I make to player put /cmds and appear the commands of the game?
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/cmds",true) == 0)
{
SendClientMessage(playerid,0x00FF40FF,"This is the server commands.");
return 1;
}
return 0;
}
command(cmds, playerid, params[]) { if(IsPlayerConnected( playerid ) ) SendClientMessage(playerid, 0xFFFFFFFF, "CMDS: YOUR COMMANDS HERE"); SendClientMessage(playerid, 0xFFFFFFFF, "Depending on how many commands you have will depend on how many lines you use"); return 1; }