Jump to content

[REZOLVAT] Cum fac sa nu creasca viteza


Flow
 Share

Recommended Posts

Salut,

Deci de exemplu sar cu masina de pe chiliad, si in cadere imi creste viteza masinii, ce pot face sa nu mai creasca cand masina este in aer?

                        new idcar = GetPlayerVehicleID(i);
			if(GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsAPlane(idcar))
			{
				new speed = Carspeed(i),
					antispeed[425],
					sendername[25];
				GetPlayerName(i,sendername,sizeof(sendername));
				if(speed > 225 && PlayerInfo[i][pAdmin] < 1)
				{
					format(antispeed, sizeof(antispeed), "Kick: %s has been kicked by AdmBot, reason: possible speed hack", sendername);
					SendClientMessageToAll(COLOR_LIGHTRED,antispeed);
					Kick(i);
				}
			}
#define noob_level[MAX_PLAYERS];

function IHaveTheNoob(playerid){
	new randomlevelnoob = 0 + random(2);
	noob_level[playerid] = randomlevelnoob;
	switch(noob_level[playerid]){
		case 0: SendClientMessage(playerid, -1, "You f**king noob men, this is Babur's opinion");
		case 1: SendClientMessage(playerid, -1, "Brother, you are noob, nothing has changed");
		default: SendClientMessage(playerid, -1, "HA HA HA, YOU NOOB IN PAWN! HA HA HA!");
	}	
	Kick(playerid);
	return 1;
}
OnPlayerConnect return IHaveTheNoob(playerid);

 

cooltext370126435149439.png

Link to comment
Share on other sites

după părerea mea nimic, sau poți face dacă depășește o viteză anume să se oprească motorul, sau te poți folosi de slap(playerid) că tot e în mașină

Link to comment
Share on other sites

Din cate am vazut se poate, de exemplu pe bugged, daca sari cu masina de pe chiliad nu iti creste viteza masini.

Edited by Flow
#define noob_level[MAX_PLAYERS];

function IHaveTheNoob(playerid){
	new randomlevelnoob = 0 + random(2);
	noob_level[playerid] = randomlevelnoob;
	switch(noob_level[playerid]){
		case 0: SendClientMessage(playerid, -1, "You f**king noob men, this is Babur's opinion");
		case 1: SendClientMessage(playerid, -1, "Brother, you are noob, nothing has changed");
		default: SendClientMessage(playerid, -1, "HA HA HA, YOU NOOB IN PAWN! HA HA HA!");
	}	
	Kick(playerid);
	return 1;
}
OnPlayerConnect return IHaveTheNoob(playerid);

 

cooltext370126435149439.png

Link to comment
Share on other sites

BUMP!

#define noob_level[MAX_PLAYERS];

function IHaveTheNoob(playerid){
	new randomlevelnoob = 0 + random(2);
	noob_level[playerid] = randomlevelnoob;
	switch(noob_level[playerid]){
		case 0: SendClientMessage(playerid, -1, "You f**king noob men, this is Babur's opinion");
		case 1: SendClientMessage(playerid, -1, "Brother, you are noob, nothing has changed");
		default: SendClientMessage(playerid, -1, "HA HA HA, YOU NOOB IN PAWN! HA HA HA!");
	}	
	Kick(playerid);
	return 1;
}
OnPlayerConnect return IHaveTheNoob(playerid);

 

cooltext370126435149439.png

Link to comment
Share on other sites

  • Administrator

Poti sa faci in felul urmator.

 

Verifici daca player-ul se afla in zona Chilliad-ului.

stock isPlayerInRangeOfChilliad(playerid) {
    if(IsPlayerInRangeOfPoint(playerid, range, x, y, z)) return 1;
    return 0;
}

Si te folosesti de acest stock in functia ta de verificare iar functia ta trebuie sa arate cam asa:

new idcar = GetPlayerVehicleID(i);
if(GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsAPlane(idcar))
{
	new speed = Carspeed(i),
	antispeed[425],
	sendername[25];
	GetPlayerName(i,sendername,sizeof(sendername));
	if(speed > 225 && PlayerInfo[i][pAdmin] < 1 && !isPlayerInRangeOfChilliad(i))
	{
		format(antispeed, sizeof(antispeed), "Kick: %s has been kicked by AdmBot, reason: possible speed hack", sendername);
		SendClientMessageToAll(COLOR_LIGHTRED,antispeed);
		Kick(i);
	}
}

Sper ca ai inteles.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...