10.03.2013, 13:59
hey i have a problem
when people buy fuel in my server they get it for free and i have no idea why.. it was working a while ago but it doesn't want to work now
when people buy fuel in my server they get it for free and i have no idea why.. it was working a while ago but it doesn't want to work now
PHP Code:
if(strcmp(cmd, "/refuel", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsAtGasStation(playerid))
{
if(Gas[idcar] <= 99)
{
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Re-Fueling Vehicle, please wait",2000,3);
SetTimer("Fillup",RefuelWait,0);
Refueling[playerid] = 1;
}
else
{
GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~Gas can is full",2000,3);
}
}
else
{
SendClientMessage(playerid,COLOR_GREY,"** You're not at a Gas Station!");
}
}
return 1;
}