How to make random spawn messages
#1

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

Anyone? ?
Reply
#3

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

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

No i mean Randomspawn..

Messages

Not randomMSG

Thanks anyway

ANyone else?
Reply
#5

Comon guys anyone?
Reply
#6

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

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;
}

Reply
#8

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

This:
Thanks alot.
Reply
#9

You're welcome
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)