/sendr /accept /denie
#2

Hi. I used tables and scanf.

Top of the gamemode:
Код:
new invite[MAX_PLAYERS];
In OnPlayerCommandText add:
Код:
dcmd(sendr, 5 ,cmdtext);
sandr:

Код:
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;

}
The rest I do not want to do .
Reply


Messages In This Thread
/sendr /accept /denie - by chrism11 - 28.11.2010, 17:28
Re: /sendr /accept /denie - by Dawids - 28.11.2010, 20:06
Re: /sendr /accept /denie - by chrism11 - 29.11.2010, 12:48

Forum Jump:


Users browsing this thread: 1 Guest(s)