SA-MP Forums Archive
How to make random spawn messages - 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 to make random spawn messages (/showthread.php?tid=158956)



How to make random spawn messages - Jay. - 11.07.2010

Hmm well can anyone tell me how to make randomspawn messages?


Because i've tryed other codes but they don't work..



Please reply thanks.


Re: How to make random spawn messages - Jay. - 11.07.2010

Anyone? ?


Re: How to make random spawn messages - Kayla.S - 11.07.2010

This works great. http://forum.sa-mp.com/showthread.ph...andom+messages


Re: How to make random spawn messages - Jay. - 11.07.2010

Quote:
Originally Posted by Kayla.S
Посмотреть сообщение

No i mean Randomspawn..

Messages

Not randomMSG

Thanks anyway

ANyone else?


Re: How to make random spawn messages - Jay. - 11.07.2010

Comon guys anyone?


Re: How to make random spawn messages - Kitten - 11.07.2010

Quote:

// on top
"SERVER: IDK",
"SERVER: IDK",
"SERVER: IDK"
};

// on top

new Msg;
new Announcements[3][128] = {

//ONPLAYERSPAWN

public OnPlayerSpawn(playerid)
{
SetTimer("Random",YourTimerNumber, true);
return 1;
}
forward Random();
public Random()
{
switch (Msg)
{
case 0: {SendClientMessageToAll(COLOR_WHITE,Announcements[0]); Msg++;} // first message
case 1: {SendClientMessageToAll(COLOR_WHITE,Announcements[1]); Msg++;}
case 2: {SendClientMessageToAll(COLOR_WHITE,Announcements[2]); Msg = 0;} // last message

}

im guesssing?


Re: How to make random spawn messages - hab2ever - 11.07.2010

onplayer random spawn?? send messages?

This:
Quote:

public OnPlayerSpawn(playerid)
{
new RandomSpawn1 = random(4);
if (RandomSpawn1 == 0)
{
SendClientMessage(playerid,0xAA3333AA,"Something here");
}
if (RandomSpawn1 == 1)
{
SendClientMessage(playerid,0xAA3333AA,"Something here");
}
if (RandomSpawn1 == 2)
{
SendClientMessage(playerid,0xAA3333AA,"Something here");
}
if (RandomSpawn1 == 3)
{
SendClientMessage(playerid,0xAA3333AA,"Something here");
}
return 1;
}




Re: How to make random spawn messages - Jay. - 11.07.2010

Quote:
Originally Posted by hab2ever
Посмотреть сообщение
onplayer random spawn?? send messages?

This:
Thanks alot.


Re: How to make random spawn messages - hab2ever - 11.07.2010

You're welcome