A little help
#3

Ok , please check this , i am really newbie , but i like scripting and want to learn.

Код:
for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
		
		    new veh;
		    veh = GetPlayerVehicleID(i);
		    iSeat = GetPlayerVehicleSeat(i);
		    
		    if(GetPlayerMoney(playerid) < 5)
		    {
			RemovePlayerFromVehicle(i);
	            }
	            else
		    {
                    if(GetVehicleModel(veh) == taxiIDVEH && GetVehicleModel(veh) == taxiIDVEH)
		    {

		    	if(iSeat == 1 && iSeat == 2 && iSeat == 3) // it's right ?
			{
                  there i want to put a textdraw with a cronometer and at 1:00 2:00 get value of x$ . but i do.t know how to make cronometer and textraw with changeable price :( if can help would be nice . need atleast one start idea.
				SetTimer("TaxiFare" ,60000,true); // this calls every 1 min right ? 
 				
				but for declare this timer what i need to do ?
				something like : 
				GivePlayerMoney(i, -5) - should be for passenger ..
				GivePlayerMoney(playerid, 5) - i think for me i need to check if i am on seat 0 or something like that with another FOR ,  .. i don't understand there :( i am newbie 
                                and some sendclientmessages for sure there .
			}
		    }
		}
	}
and this FOR i should add in onplayerentervehicle right ?
Reply


Messages In This Thread
A little help - by christiand - 15.06.2012, 17:16
Re: A little help - by Jonny5 - 15.06.2012, 18:03
Re: A little help - by christiand - 15.06.2012, 18:44
Re: A little help - by christiand - 16.06.2012, 18:44

Forum Jump:


Users browsing this thread: 2 Guest(s)