OnPlayerText Problem
#1

Hi
I have problem i downloaded cell and i put it in my gm and When i type any thing in the chat it show my phone number and i am not calling any one
here the code
pawn Код:
public OnPlayerText(playerid, text[])
{
    if (!player[playerid][calling] || player[playerid][caller] == 255)
    {
        new string[128];
        format(string, 255, "(%d) %s", player[playerid][number], text);
        SendPlayerMessageToAll(playerid, string);
    }
    else
    {
        new str[158];
        GetPlayerName(playerid, str, 16);
        format(str, sizeof(str), "(Cellphone)%s : %s", str, text);
        SendClientMessage(player[playerid][caller], 0xBFC0C2FF, str);
        SendClientMessage(playerid, 0xBFC0C2FF, str);
    return 1;
 }


    if(afk[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_NORMALRED, "You can not chat while in AFK mode. Type /back to return");
        return 1;
    }
Reply


Messages In This Thread
OnPlayerText Problem - by misho1 - 24.05.2011, 21:20
Re: OnPlayerText Problem - by Vince - 24.05.2011, 21:26
Re: OnPlayerText Problem - by misho1 - 26.05.2011, 03:29

Forum Jump:


Users browsing this thread: 1 Guest(s)