09.01.2010, 02:12
How to make:
/hi id
>> ' Nick ' Welcomes the player ' Nick'
/bb id
>>'Nick' bb 'Nick'
/hi id
>> ' Nick ' Welcomes the player ' Nick'
/bb id
>>'Nick' bb 'Nick'
if(!strcmp(cmd, "/hi",true) || !strcmp(cmd, "/hey",true))
{
new dir[256];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 4, strlen(cmdtext));
if(!strlen(dir))
{
SendClientMessage(playerid,COLOR_PINK,"[USAGE]> /hi [Message]");
return 1;
}
dir = strtok(cmdtext, idx);
new string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "*** %s %s Say you Hi!! ", sendername, tmp);
SendClientMessageToAll(COLOR_WHITE,string);
print(string);
return 1;
}