SA-MP Forums Archive
Message Spamming Problem - 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)
+--- Thread: Message Spamming Problem (/showthread.php?tid=639492)



Message Spamming Problem - DeStRoY232 - 18.08.2017

i have scripted sendclientmessage in onplayerspawn

and whenever i spawned that msg repeated again and again i just want it to be only show one time when player click spawn button

Код:
public OnPlayerSpawn(playerid)
{ 
	SendClientMessage(playerid, COLOR_WHITE, "Welcome To The {FF6600}Dark Mapping Server{FFFFFF}");
	SendClientMessage(playerid, COLOR_WHITE, "Type {FF6600}/help {FFFFFF}to see server commands");
	return 1;
}
i want this message to be appeared only one time when i spawned not again and again


Re: Message Spamming Problem - verlaj - 18.08.2017

replace OnPlayerSpawn(playerid) with OnPlayerConnect or OnPlayerRequestSpawn


Re: Message Spamming Problem - DeStRoY232 - 18.08.2017

Quote:
Originally Posted by verlaj
Посмотреть сообщение
replace OnPlayerSpawn(playerid) with OnPlayerConnect or OnPlayerRequestSpawn
Thanks Bro i will try it