10.05.2013, 16:21
Hey,
When I type this command:
I see BEEP BEEP BEEP but it also says Server Unknown command.
When I type this command:
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;
}