SA-MP Forums Archive
[help] very simple but forgot - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [help] very simple but forgot (/showthread.php?tid=153846)



[help] very simple but forgot - [asg]davo - 11.06.2010

how to i make this so it sends a message to all

command:

if (strcmp("/heal", cmdtext, true, 10) == 0)
{
SendClientMessageToAll(0xC2A2DAAA, "[wat goes here] has healed himself");
SendClientMessage(0xC2A2DAAA, "You Have Been Fully Healed");
SetPlayerHealth(playerid, 100);
return 1;

this part here [wat goes here] i wanna make it say to everyone

[asg]davo has healed himself

can someone plz tell me i forgot how to do it even though its very simple


Re: [help] very simple but forgot - Babul - 11.06.2010

Код:
if (strcmp("/heal", cmdtext, true, 10) == 0)
{
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid,name,sizeof(name));
	new string[128];
	format(string,sizeof(string),"(%d) %s has healed himself",playerid,name);
	SendClientMessageToAll(0xC2A2DAAA,string);
	SendClientMessage(0xC2A2DAAA, "You Have Been Fully Healed");
	SetPlayerHealth(playerid, 100);
	return 1;
}



Re: [help] very simple but forgot - [asg]davo - 11.06.2010

ooh yep thx now i remember

thankyou