Wie kann ich Benizinpreis ändern ? finde es ihm Script nicht
if(strcmp(cmd, "/fill", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsAtGasStation(playerid))
{
if(IsANoTachoVehicle(GetPlayerVehicleID(playerid)))
{
SendClientMessage(playerid,COLOR_YELLOW," Du kannst kein Fahrrad betanken!");
}
else
{
SetTimer("Fillup",RefuelWait,0);
Refueling[playerid] = 1;
FreezePlayer(playerid);
SendClientMessage(playerid,COLOR_WHITE," Dein Fahrzeug wird betankt, Bitte warten....");
}
}
else
{
SendClientMessage(playerid,COLOR_GREY," Du bist an keiner Tankstelle!");
}
}
return 1;
}
if(strcmp(cmd, "/fillcar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
if(PlayerInfo[playerid][pFuel] > 0)
{
new veh = GetPlayerVehicleID(playerid);
if(IsANoTachoVehicle(veh))
{
SendClientMessage(playerid,COLOR_YELLOW," Ein Fahrrad hat doch keinen Tank...");
}
else if( (Gas[veh] + 20) < GetGasMax(GetVehicleModel(veh)) )
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, " ~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Fahrzeug tanken, bitte warten.");
Gas[veh] += 20;
PlayerInfo[playerid][pFuel] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Dein Fahrzeug hat noch genug Benzin !");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Dein Benzinkanister ist leer !");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Du bist in keinem Fahrzeug !");
}
}
return 1;