26.02.2011, 17:55
How can i create that i with this command /fill have to /fill [amount]
command:
if(strcmp(cmd, "/fill", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsAtGasStation(playerid))
{
GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~ n~~n~~n~Punenje vozila, molim pricekajte",2000,3);
SetTimer("Fillup",RefuelWait,0);
Refueling[playerid] = 0;
}
else
{
SendClientMessage(playerid,COLOR_GREY,"Niste na benzinskoj stanici!");
}
}
return 1;
}
sorry for my bad english
command:
if(strcmp(cmd, "/fill", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsAtGasStation(playerid))
{
GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~ n~~n~~n~Punenje vozila, molim pricekajte",2000,3);
SetTimer("Fillup",RefuelWait,0);
Refueling[playerid] = 0;
}
else
{
SendClientMessage(playerid,COLOR_GREY,"Niste na benzinskoj stanici!");
}
}
return 1;
}
sorry for my bad english