if(strcmp(cmd, \"/tankolás\", true) == 0 || strcmp(cmd, \"/tankolas\", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsAtGasStation(playerid))
{
if(!IsPlayerInAnyVehicle(playerid))
{
for(new i;i<MAX_VEHICLES;i++)
{
new Float:Vx, Float:Vy, Float:Vz;
GetVehiclePos(i, Vx, Vy, Vz);
if(IsPlayerInRangeOfPoint(playerid, 5.0, Vx, Vy, Vz)
{
if(Gas[idcar] <= 99)
{
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid,\"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Tankolás Folyamatban, VÁRJ\",5000,3);
SetTimer(\"Fillup\",RefuelWait,0);
Refueling[playerid] = 1;
}
else
{
GameTextForPlayer(playerid,\"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~A tank megtelt\",5000,3);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, \"Nem lehetsz öt méternél távolabb az autódhoz!\");
}
}
}
else SendClientMessage(playerid,COLOR_GRAD2,\"Ne ülj az autódban!\");
}
else SendClientMessage(playerid,COLOR_GRAD2,\"Nem vagy a Benzinkúton!\");
}
return 1;
}