21.08.2012, 21:47
No need for cases; use options.
DCMD Example:
DCMD Example:
PHP код:
dcmd_help(playerid, params[])
{
new option[50];
if(sscanf(params,"s", option))
{
SendClientMessage(playerid,c_white,"Account help - /help one");
SendClientMessage(playerid,c_white,"Account help - /help two");
return 1;
}
if(strcmp(option,"one",true) == 0)
{
SendClientMessage(playerid,c_green,"|________Account Help________|");
SendClientMessage(playerid,c_white,"your text");
}
if(strcmp(option,"two",true) == 0)
{
SendClientMessage ... etc