You need 20.000$ to enter in Hydra
#7

Quote:
Originally Posted by akis_tze
Посмотреть сообщение
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicle;
    vehicle = GetPlayerVehicleID(playerid);
    new money:
    money = GetPlayerMoney(playerid);
	if(newstate == PLAYER_STATE_DRIVER && vehicle == 520)
	{
		if(money < 20000)
		{
			RemovePlayerFromVehicle(playerid);
		}
	}
	return 1;
}
No offence bud but this code is a bit unefficent. Why? It checks if money is lower than 20000, but if its higher than 20000 it does nothing like remove 20000? We dont want free Hydras.
Reply


Messages In This Thread
You need 20.000$ to enter in Hydra - by Face9000 - 18.12.2010, 15:53
Re: You need 20.000$ to enter in Hydra - by admantis - 18.12.2010, 16:02
Re: You need 20.000$ to enter in Hydra - by blackwave - 18.12.2010, 16:05
Re: You need 20.000$ to enter in Hydra - by admantis - 18.12.2010, 16:06
Re: You need 20.000$ to enter in Hydra - by akis_tze - 18.12.2010, 16:06
Re: You need 20.000$ to enter in Hydra - by blackwave - 18.12.2010, 16:10
Re: You need 20.000$ to enter in Hydra - by admantis - 18.12.2010, 16:10
Re: You need 20.000$ to enter in Hydra - by akis_tze - 18.12.2010, 16:14
Re: You need 20.000$ to enter in Hydra - by Mr.Jvxmc - 18.12.2010, 16:22
Re: You need 20.000$ to enter in Hydra - by Steven82 - 18.12.2010, 17:08

Forum Jump:


Users browsing this thread: 2 Guest(s)