28.11.2010, 20:06
Hi. I used tables and scanf.
Top of the gamemode:
In OnPlayerCommandText add:
sandr:
The rest I do not want to do
.
Top of the gamemode:
Код:
new invite[MAX_PLAYERS];
Код:
dcmd(sendr, 5 ,cmdtext);
Код:
dcmd_sendr(playerid, cmdtext[]) { new id,string[80]; if (sscanf(cmdtext, "u", id)) { SendClientMessage(playerid, RED, "Error: /sendr [ID]"); return 1; } invite[id] = 1; SendClientMessage(playerid,ORANGE,"You sent the request"); format(string, sizeof(string), "ID %s has sent you a DM Request. /Accept id or /denie id", YourFunction(playerid)); SendClientMessage(id,ORANGE,string); return 1; }
