[help] very simple but forgot
#1

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
Reply
#2

Код:
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;
}
Reply
#3

ooh yep thx now i remember

thankyou
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)