15.11.2013, 15:46
pawn Код:
if(strcmp(cmd, "/fill", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsAtGasStation(playerid))
{
new State = GetPlayerState(playerid);
if(State != PLAYER_STATE_DRIVER)
{
SendClientMessage(playerid,COLOR_YELLOW,"Mora da ste vozac za da stavite gorivo !");
return 1;
}
if(Gas[idcar] <= 99)
{
ShowPlayerDialog(playerid, 16001, DIALOG_STYLE_LIST,"Gorivo","Nafta [$10]\nBenzin [$7]\nPlin [$5]","OK","Close");
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Rezervoarot e poln !");
}
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Ne ste na benzinska pumpa !");
}
}
}