05.05.2017, 21:43
PHP код:
//OnPlayerSpawn
SetTimer("RandBotMsgs", 20000, true);
PHP код:
new bmsgTDswitch;
forward RandBotMsgs();
public RandBotMsgs()
{
ForEach(i, MAX_PLAYERS)
{
if(IsPlayerConnected(i))
{
bmsgTDswitch ++;
switch(bmsgTDswitch)
{
case 1:
{
TextDrawSetString(Textdraw7,"Welcome to ZoneX Enjoy your stay don't forget to add our server to your favorites~n~~n~~n~");
}
case 2:
{
Topscore();
}
case 3:
{
Topcash();
}
case 4:
{
TextDrawSetString(Textdraw7,"Read ~g~/rules~w~ to avoid getting banned from our server~n~~n~~n~");
bmsgTDswitch = 0;
}
}
}
}
return true;
}