Jump to content
  • 0

O problema :(


leon

Question

Am facut o chestia care daca ai warns 3 ati da ban automat da nu pot so fac sa mearga cum trebuie  ???

E complicat :(

	new string[256], sendername[MAX_PLAYER_NAME];
	GetPlayerName(playerid, sendername, sizeof(sendername));
	for(new i=0; i<MAX_PLAYERS;i++)
	{
	if(IsPlayerConnected(i))
	{
		if(PlayerInfo[playerid][pWarns] >= 5)
		{
			format(string, sizeof(string), "[WarnBan] Name:[%s] Reason:[Warns 3]",sendername);
			SendClientMessageToAll(COLOR_LIGHTRED, string);
			Ban(playerid);
		}
	}
	}

Cn stie so faca sa mearga cum trebuie ?  :)

i0418xcttya707ofg.jpg

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • 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.