how to send messages?
#7

Код:
dcmd_poke(playerid, params[])
{
	new id;
	if(sscanf(params, "u", id)) SendClientMessage(playerid, COLOR_YELLOW, "[USAGE]:[/]poke <id>");
	else if(id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "[ERROR] player is not connected!");
	else if(playerid != id)
	{
	    new string[128];
	    new pName[24];
	    new iName[24];
	    format(string, sizeof(string), "you poked %s (%d)", iName, id);
	    format(string, sizeof(string), "%s (%d) has poked you", pName, playerid);
	    SendClientMessage(id, COLOR_PPINK, string);
	    SendClientMessage(playerid, COLOR_PPINK, string);
	    return 1;
	}
	else SendClientMessage(playerid, COLOR_RED, "You can't poke yourself");
	return 1;
}
SORRY FOR DOUBLE POST I IMPROVED MY COMMAND FOR POKE
Reply


Messages In This Thread
how to send messages? - by Mobtiesgangsa - 21.09.2017, 03:03
Re: how to send messages? - by Toroi - 21.09.2017, 05:35
Re: how to send messages? - by Logic_ - 21.09.2017, 08:38
Re: how to send messages? - by Bolex_ - 21.09.2017, 08:43
Re: how to send messages? - by Mobtiesgangsa - 21.09.2017, 18:26
Re: how to send messages? - by Toroi - 21.09.2017, 18:48
Re: how to send messages? - by Mobtiesgangsa - 21.09.2017, 21:03
Re: how to send messages? - by Toroi - 21.09.2017, 21:11

Forum Jump:


Users browsing this thread: 1 Guest(s)