Is there a way to make this work for zcmd
#2



pawn Код:
CMD:refuel( playerid, params[ ] )
{
    if (!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFFC800FF,"You are not in an vehicle!");
    if (isrefuelling[playerid]) return SendClientMessage(playerid,0xFFC800FF,"You are already refuelling!");
    if (GetPlayerMoney(playerid) - 80 <0) return SendClientMessage(playerid,0xFFC800FF,"You dont have enough money!");
   
    GivePlayerMoney(playerid,-80);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid,0);
    isrefuelling[playerid] = 1;
    TextDrawSetString(td_fuel[playerid],"Refuelling...");
    SetTimerEx("timer_refuel",4500,false,"i",playerid);
    return 1;
}
Hope this helps.

Edit: Don't forget to remove strcmp commands and the best is to remove the whole OnPlayerCommandText public callback.

Regards,
FalconX
Reply


Messages In This Thread
Is there a way to make this work for zcmd - by Michael_Cuellar - 07.08.2012, 17:50
Re: Is there a way to make this work for zcmd - by FalconX - 07.08.2012, 17:56
Re: Is there a way to make this work for zcmd - by Michael_Cuellar - 07.08.2012, 18:12
Re: Is there a way to make this work for zcmd - by FalconX - 07.08.2012, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)