15.06.2012, 18:44
Ok , please check this , i am really newbie , but i like scripting and want to learn.
and this FOR i should add in onplayerentervehicle right ?
Код:
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 .
}
}
}
}

