SA-MP Forums Archive
Please help ;) - 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: Please help ;) (/showthread.php?tid=151203)



Please help ;) - GoN - 29.05.2010

I have some problems with Pawno script at Automsg

Quote:
//=-=-=-=-=-Auto Messages=-=-=-=-=-
#define AutoMsg1 "|______________________________Tips______________ ________________|"
#define AutoMsg2 " The use of cheats in this server is not allowed and will result in a ban."
#define AutoMsg3 " We would appreciate it if you follow all of our rules."
#define AutoMsg4 " Use /saveskin to choose you favorite skin. (/delskin to cancel)"
#define AutoMsg5 " Don't ask to be an admin, we will see if you are good enough."
#define AutoMsg6 " If you like this server, add this to your Favourites."
#define AutoMsg7 " Don't forget to have fun in this server."
#define AutoMsg8 "|______________________________Tips______________ ________________|"
And if you have some Racing scripts like The GamerX Race. Could you give us a working one?

Thanks



Re: Please help ;) - Jonni8 - 30.05.2010

And whats your problem? XD


Re: Please help ;) - DeadlyKFC - 04.06.2010

That he needs some racing scripts lol? ._.


Re: Please help ;) - DJDhan - 04.06.2010

If you want to use Automessages, use an array instead.

Eg:
Код:
new AutoMessages[][] =
{
  "The use of cheats in this server is not allowed and will result in a ban",   // you can add your messages here
  "We would appreciate it if you follow all of our rules"
};
Then you would send it something like this:

Код:
forward AutoMsg();
public AutoMsg()
{
    return SendClientMessageToAll(0xffffffaa,AutoMessages[random(sizeof(AutoMessages))]));
}
Set a timer under OnGamemodeinit funtion:
Код:
SetTImer("AutoMsg",10000,1);  // 10 seconds.  Change if you want any other interval



Re: Please help ;) - GoN - 04.06.2010

Quote:
Originally Posted by DJDhan
If you want to use Automessages, use an array instead.

Eg:
Код:
new AutoMessages[][] =
{
  "The use of cheats in this server is not allowed and will result in a ban",   // you can add your messages here
  "We would appreciate it if you follow all of our rules"
};
Then you would send it something like this:

Код:
forward AutoMsg();
public AutoMsg()
{
    return SendClientMessageToAll(0xffffffaa,AutoMessages[random(sizeof(AutoMessages))]));
}
Set a timer under OnGamemodeinit funtion:
Код:
SetTImer("AutoMsg",10000,1);  // 10 seconds.  Change if you want any other interval



Re: Please help ;) - DJDhan - 04.06.2010

CLICK ME, I am your friend