Jump to content

Auto Message With Player Name


Hamiiziii

Recommended Posts

Quote

#Include <a_samp>
#Include <foreach>

forward SendMSG(playerid);
public SendMSG(playerid)
{
	foreach(Player, i)
	{
	    	new randMSG = random(10);
	    	new namemsg[25],stringmsg[256];
	    	GetPlayerName(i, namemsg, sizeof(namemsg));
	    	switch(randMSG)
	    	{
		    	case 0:
		    	{
					format(stringmsg, sizeof(stringmsg), "{FF0000}%s{ffffff}, our server forum is {FF0000} www.ActionGaming.Ro.",namemsg);
					SCM(i, -1, stringmsg);
		    	}
		    	case 1:
		    	{
					format(stringmsg, sizeof(stringmsg), "{FF0000}%s{ffffff}, if you want to work on our server write {FFFF00}/jobs.",namemsg);
					SCM(i, -1, stringmsg);
		    	}
		    	case 2:
		    	{
					format(stringmsg, sizeof(stringmsg), "{FF0000}%s{ffffff}, if you want to see the news of our server write {FFFF00}/update.",namemsg);
					SCM(i, -1, stringmsg);
		    	}
		    	case 3:
		    	{
					format(stringmsg, sizeof(stringmsg), "{FF0000}%s{ffffff}, if you want a department leader, you need 50 hours on the server {FFFF00}/stats.",namemsg);
					SCM(i, -1, stringmsg);
		    	}
		    	case 4:
		    	{
					format(stringmsg, sizeof(stringmsg), "{FF0000}%s{ffffff}, if you want a leader at any faction outside the departments, you need 10 hours to play on the server {FFFF00}/stats.",namemsg);
					SCM(i, -1, stringmsg);
		    	}
		    	case 5:
		    	{
					format(stringmsg, sizeof(stringmsg), "{FF0000}%s{ffffff}, if you have a question about the server do not hesitate to ask {FFFF00}/n.",namemsg);
					SCM(i, -1, stringmsg);
		    	}
		    	case 6:
		    	{
					format(stringmsg, sizeof(stringmsg), "{FF0000}%s{ffffff}, if you have a problem with the server /forum /panel do not hesitate to tell us {FFFF00}/report.",namemsg);
					SCM(i, -1, stringmsg);
		    	}
		    	case 7:
		    	{
					format(stringmsg, sizeof(stringmsg), "{FF0000}%s{ffffff}, real money businesses are banned and punished with {FF0000}ban.",namemsg);
					SCM(i, -1, stringmsg);
		    	}
		    	case 8:
		    	{
					format(stringmsg, sizeof(stringmsg), "{FF0000}%s{ffffff}, if you want to make a donation, talk to an admin of {FF0000}level 7.",namemsg);
					SCM(i, -1, stringmsg);
		    	}
		    	case 9:
		    	{
					format(stringmsg, sizeof(stringmsg), "{FF0000}%s{ffffff}, if you want to see the facilities of a premium account it uses {FFFF00}/premium",namemsg);
					SCM(i, -1, stringmsg);
		    	}
		    	case 10:
		    	{
					format(stringmsg, sizeof(stringmsg), "{FF0000}%s{ffffff}, if you want to see factions the server uses {FFFF00}/factions.",namemsg);
					SCM(i, -1, stringmsg);
		    	}
		    	case 11:
		    	{
					format(stringmsg, sizeof(stringmsg), "{FF0000}%s{ffffff}, do not forget to call your friends to play with us.",namemsg);
					SCM(i, -1, stringmsg);
		    	}
			}
	}
}
public OnGameModeInit()
{
    SetTimer("SendMSG", 300000, 1);
	return 1;
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.