SA-MP Forums Archive
How can I make the rules appear when a player spawns - 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: How can I make the rules appear when a player spawns (/showthread.php?tid=91574)



How can I make the rules appear when a player spawns - acok97 - 15.08.2009

OK my question is in the title , i need the code ! If its more difficult could please somebody teach me , and i want to appear this :
Ovo su pravila servera:
1.Postujte sve igrace i admine
2.Chitovanje i svakakvo iskoristavanje bugova ce biti kaznjeno sa KICK/BAN
3.Uvrede po nacionalnoj ili vjerskoj bazi ce biti kaznjeno sa KICK/BAN
4.Ako hocete da se prikljucite u clan obratite se Adminima
5.Izvinio bih se za svaki Kick od Admina , server sluzi i za snimanje videa


Re: How can I make the rules appear when a player spawns - [TouchX]Ash - 15.08.2009

Under

Код:
public OnPlayerSpawn(playerid)
write

Код:
SendClientMessage(playerid, COLOR_LIGHTRED, "Ovo su pravila servera:");
SendClientMessage(playerid, COLOR_LIGHTRED, "1.Postujte sve igrace i admine");
SendClientMessage(playerid, COLOR_LIGHTRED, "2.Chitovanje i svakakvo iskoristavanje bugova ce biti kaznjeno sa KICK/BAN");
SendClientMessage(playerid, COLOR_LIGHTRED, "3.Uvrede po nacionalnoj ili vjerskoj bazi ce biti kaznjeno sa KICK/BAN");
SendClientMessage(playerid, COLOR_LIGHTRED, "4.Ako hocete da se prikljucite u clan obratite se Adminima");
SendClientMessage(playerid, COLOR_LIGHTRED, "5.Izvinio bih se za svaki Kick od Admina , server sluzi i za snimanje videa");
He's the LIGHTRED define incase you need it, also you don't have to use that colour.
Код:
#define COLOR_LIGHTRED 0xFF6347AA



Re: How can I make the rules appear when a player spawns - acok97 - 15.08.2009

OK So I need to add this to a script right ? rules.pwn , and then compile it to rules.amx and add it to the config


Re: How can I make the rules appear when a player spawns - [TouchX]Ash - 15.08.2009

If you like, I personally would include it in my gamemode.


Re: How can I make the rules appear when a player spawns - acok97 - 16.08.2009

IT'S OK , when you finish you could send me please it , i want to see the rules in the left upper corner


Re: How can I make the rules appear when a player spawns - XtremeChio - 16.08.2009

Quote:
Originally Posted by acok97
IT'S OK , when you finish you could send me please it , i want to see the rules in the left upper corner
Lol I thin you understood wrong.

If he HAD to do it, he would put it in HIS gamemode. But he doesn't, he said that so you would see that you have to put this in YOUR script.

And erm dude..What he posted is what you're looking for.. Just put this under OnPlayerSpawn..If you don't know how to do, then I suggest you to read few pawn tutorials before doing that..


Re: How can I make the rules appear when a player spawns - Adil - 16.08.2009

Quote:
Originally Posted by acok97
OK my question is in the title , i need the code ! If its more difficult could please somebody teach me , and i want to appear this :
Ovo su pravila servera:
1.Postujte sve igrace i admine
2.Chitovanje i svakakvo iskoristavanje bugova ce biti kaznjeno sa KICK/BAN
3.Uvrede po nacionalnoj ili vjerskoj bazi ce biti kaznjeno sa KICK/BAN
4.Ako hocete da se prikljucite u clan obratite se Adminima
5.Izvinio bih se za svaki Kick od Admina , server sluzi i za snimanje videa
Do you have your own script ? if you have put what Ash said in your script, under Public OnPlayerSpawn.


Re: How can I make the rules appear when a player spawns - [TouchX]Ash - 16.08.2009

Quote:
Originally Posted by XtremeChio
Quote:
Originally Posted by acok97
IT'S OK , when you finish you could send me please it , i want to see the rules in the left upper corner
Lol I thin you understood wrong.

If he HAD to do it, he would put it in HIS gamemode. But he doesn't, he said that so you would see that you have to put this in YOUR script.

And erm dude..What he posted is what you're looking for.. Just put this under OnPlayerSpawn..If you don't know how to do, then I suggest you to read few pawn tutorials before doing that..
My fault to be honest, I should have made it clearer.


Re: How can I make the rules appear when a player spawns - PilotXtreme - 28.10.2010

Bump!