Can Someone Please Help
#6

Try This.

pawn Код:
if(strcmp(cmdtext, "/duty", true, 5))
{
    if(OnDuty[playerid] == true)
    {
        SendClientMessage(playerid, COLOR_WHITE, "You are now off duty!");
        SendClientMessage(playerid, COLOR_WHITE, "You will no longer receive duty messages");
        OnDuty[playerid] = false;
    }
    else
    {
        SendClientMessage(playerid, COLOR_WHITE, "You are now on duty!");
        SendClientMessage(playerid, COLOR_WHITE, "You will receive a message when a player needs a ride");
        OnDuty[playerid] = false;
    }
    return 1;
}

if(strcmp(cmdtext, "/fare", true, 5))
{
    // prevent spamming
    if(Called[playerid] == true)
    {
        return SendClientMessage(playerid, COLOR_WHITE, "Please wait while calling a taxi!");
    }
    else
    {
        SendClientMessage(playerid, COLOR_WHITE, "You have called a taxi, you have to wait 2 minutes to make a new call");
        SendClientMessage(playerid, COLOR_WHITE, "[PAYMENT] You have to pay $5 each 10 minutes (game minutes)");
        SetTimerEx("CalledTaxi", 1000*60*120, false, "i", playerid);
        Called[playerid] = false;
        for(new i; i < MAX_PLAYERS; i++)
        {
            if(OnDuty[i] == true)
            {
                SendTaxiMessage(playerid, COLOR_WHITE);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Can Someone Please Help - by [LHT]Bally - 18.09.2011, 15:59
Re: Can Someone Please Help - by Kingunit - 18.09.2011, 16:05
Re: Can Someone Please Help - by [LHT]Bally - 18.09.2011, 16:07
Re: Can Someone Please Help - by grand.Theft.Otto - 18.09.2011, 16:07
Re: Can Someone Please Help - by [LHT]Bally - 18.09.2011, 16:10
Re: Can Someone Please Help - by grand.Theft.Otto - 18.09.2011, 16:16
Re: Can Someone Please Help - by [LHT]Bally - 18.09.2011, 16:24
Re: Can Someone Please Help - by grand.Theft.Otto - 18.09.2011, 16:40
Re: Can Someone Please Help - by Vince - 18.09.2011, 16:43
Re: Can Someone Please Help - by [LHT]Bally - 18.09.2011, 16:48

Forum Jump:


Users browsing this thread: 1 Guest(s)