/smstoall [REQ+]
#3

i got here its pretty Simple
Код:
CMD:smstoall(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 1)
	{
		SendClientMessageEx(playerid, COLOR_GREY, "You are not authorized to use that command!");
		return 1;
	}

	new string[128];
	if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /smstoall [sms text]");

	format(string, sizeof(string), "SMS: %s, Sender: SENDER (143)",params);
	if (gTeam[playerid] < 3){SendClientMessageEx(playerid, COLOR_YELLOW, string);}
	SendEnemyMessage(COLOR_YELLOW, string);
	foreach(Player, i)
	{
		if(gTeam[i] >= 3 && gPlayerSpawned[i])
		{
			RingTone[i] =20;
		}
	}
	return 1;
}
Reply


Messages In This Thread
/smstoall [REQ+] - by paulll0len - 07.04.2012, 13:12
Re: /smstoall [REQ+] - by ivanVU - 07.04.2012, 13:20
Re: /smstoall [REQ+] - by DamienWalter - 15.05.2012, 13:11

Forum Jump:


Users browsing this thread: 2 Guest(s)