Jump to content

Recommended Posts

Posted

Imi da asta: (5422) : warning 213: tag mismatch

ce sa fac ca sa repar?

new OnFly[MAX_PLAYERS];
new Float:LastVelocity[MAX_PLAYERS][3];
TrollDetect(playerid, troll = 0)
{
	if(troll == 1)
	{
		new str[128], name[MAX_PLAYER_NAME+1];
		GetPlayerName(playerid, name, sizeof name);
		format(str, sizeof str, "Kick: %s has been kicked by AdmBot, reason: Troll (cheats)", name);
		SendClientMessageToAll(COLOR_SANCTION, str);
		Kick(playerid);
		return 1;
	}
	if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
	{
		if(OnFly[playerid] == false)
		{
			new Float:Velocity[3];
			GetPlayerVelocity(playerid, Velocity[0], Velocity[1], Velocity[2]);
			new Float:amount = Velocity[0]-LastVelocity[playerid][0];
			new Float:amount2 = Velocity[1]-LastVelocity[playerid][1];
			if(amount > 3.0 || amount < -4.0 || amount2  > 10.0 || amount2 < -10.0 || Velocity[2] == 0.100000)
			{
				new str[128], name[MAX_PLAYER_NAME+1];
				GetPlayerName(playerid, name, sizeof name);
				format(str, sizeof str, "Kick: %s has been kicked by AdmBot, reason: Troll (cheats)", name);
				SendClientMessageToAll(COLOR_SANCTION, str);
				Kick(playerid);
				return 1;
			}
		}	
	}
Posted

 

Imi da asta: (5422) : warning 213: tag mismatch

ce sa fac ca sa repar?

new OnFly[MAX_PLAYERS];
new Float:LastVelocity[MAX_PLAYERS][3];
TrollDetect(playerid, troll = 0)
{
	if(troll == 1)
	{
		new str[128], name[MAX_PLAYER_NAME+1];
		GetPlayerName(playerid, name, sizeof name);
		format(str, sizeof str, "Kick: %s has been kicked by AdmBot, reason: Troll (cheats)", name);
		SendClientMessageToAll(COLOR_SANCTION, str);
		Kick(playerid);
		return 1;
	}
	if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
	{
		if(OnFly[playerid] == false)
		{
			new Float:Velocity[3];
			GetPlayerVelocity(playerid, Velocity[0], Velocity[1], Velocity[2]);
			new Float:amount = Velocity[0]-LastVelocity[playerid][0];
			new Float:amount2 = Velocity[1]-LastVelocity[playerid][1];
			if(amount > 3.0 || amount < -4.0 || amount2  > 10.0 || amount2 < -10.0 || Velocity[2] == 0.100000)
			{
				new str[128], name[MAX_PLAYER_NAME+1];
				GetPlayerName(playerid, name, sizeof name);
				format(str, sizeof str, "Kick: %s has been kicked by AdmBot, reason: Troll (cheats)", name);
				SendClientMessageToAll(COLOR_SANCTION, str);
				Kick(playerid);
				return 1;
			}
		}	
	}

aceiasi problema ca la /flymode, ti-am raspuns in acel topic.

  • 3 weeks later...
  • 1 month later...
  • 1 year later...

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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

By using this site, you agree to our Terms of Use. 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.

moduri samp