Server Unknown Command
#2

Try this
pawn Код:
command:hangup(playerid, params[])
{
    new string[128];
    Player[playerid][OnPhoneTime] = 0;
    SCM(playerid, PHONECOLOR, "***BEEP BEEP BEEP***");
    SCM(Player[playerid][CellphoneConsole], PHONECOLOR, "***BEEP BEEP BEEP***");
    Player[Player[playerid][CellphoneConsole]][OnPhoneTime] = 0;
    format(string, sizeof(string), "* %s puts %s cellphone back into %s pocket.", RPName(playerid), SexGender(playerid), SexGender(playerid));
    NearByMessage(playerid, NICESKY, string);
    format(string, sizeof(string), "* %s puts %s cellphone back into %s pocket.", RPName(Player[playerid][CellphoneConsole]), SexGender(Player[playerid][CellphoneConsole]), SexGender(Player[playerid][CellphoneConsole]));
    NearByMessage(Player[playerid][CellphoneConsole], NICESKY, string);
    if(GetPlayerSpecialAction(Player[playerid][CellphoneConsole]) == SPECIAL_ACTION_USECELLPHONE)
    {
        SetPlayerSpecialAction(Player[playerid][CellphoneConsole], SPECIAL_ACTION_STOPUSECELLPHONE);
    }

    if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USECELLPHONE)
    {
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
    }

    if(Player[playerid][CellphoneConsole] != -1)
    {
        Player[Player[playerid][CellphoneConsole]][CellphoneConsole] = -1;
        Player[playerid][CellphoneConsole] = -1;
    }

    return 1;
}
Reply


Messages In This Thread
Server Unknown Command - by Stefand - 10.05.2013, 16:21
Re: Server Unknown Command - by IceBilizard - 10.05.2013, 16:48
Re: Server Unknown Command - by ryanhawk31 - 10.05.2013, 17:09
Re: Server Unknown Command - by Stefand - 10.05.2013, 17:52
AW: Server Unknown Command - by Blackazur - 10.05.2013, 17:55
Re: Server Unknown Command - by Stefand - 10.05.2013, 19:16
Re: Server Unknown Command - by Pooh7 - 10.05.2013, 19:42
Re: Server Unknown Command - by Stefand - 10.05.2013, 19:47
Re: Server Unknown Command - by Stefand - 10.05.2013, 20:40
Re: Server Unknown Command - by Joe Staff - 10.05.2013, 20:56

Forum Jump:


Users browsing this thread: 1 Guest(s)