GameTextForPlayer(playerid, "TEXT HERE", 2500, 1); playerid = player variable TEXT HERE = enter the text you want to display there 2500 = miliseconds of the text to stay on screen 1 = text's type
You can either use textdraws (I recommend Zamaroht or iPLEOMAX's TextDraw editor) or use GameTextForPlayer function.
Код:
GameTextForPlayer(playerid, "TEXT HERE", 2500, 1); playerid = player variable TEXT HERE = enter the text you want to display there 2500 = miliseconds of the text to stay on screen 1 = text's type |
else if(ispassenger)
{
// Taxi Fare
new driver = GetVehicleDriverID(vehicleid);
new string[128];
if(IsTaxiVehicle(vehicleid) && TaxiFare[driver] != 0 && driver != -1)
{
format(string, sizeof(string), "You have entered %s's Taxi, You will pay $%d for every 10 seconds.", RPN(driver), TaxiFare[driver]);
SendClientMessage(playerid, COLOR_YELLOW, string);
FareTimer[playerid] = SetTimerEx("FareAmount", 10000, true, "ii", playerid, driver);
}
}
if(IsTaxiVehicle(GetPlayerVehicleID(playerid)) && GetPlayerVehicleSeat(playerid) != 0)
{
if(driver != -1 && CustomerPay[playerid] != 0)
{
new string[128];
new amount = CustomerPay[playerid];
GiveDodMoney(playerid, -amount);
GiveDodMoney(driver, amount);
CustomerPay[playerid] = 0;
format(string, sizeof(string), "You have paid %s $%d for the travel.", RPN(driver), CustomerPay[playerid]);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
else
{
CustomerPay[playerid] = 0;
}
KillTimer(FareTimer[playerid]);
}