Help with phone listening
#8

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
What I mean is:
pawn Код:
new Jacked[MAX_PLAYERS];

Jacked[playerid] = 0;//OnPlayerConnect

if(Jacked[playerid] != 0)//OnPlayerText
{
    SendClientMessage(Jacked[playerid],color,text);
}

CMD:fbilisten(playerid,params[])
{
    if(PlayerInfo[playerid][pMember] != 2) return SendClientMessage(playerid, COLOR_LIGHTRED, "You're not FBI!");
    if(isnull(params)) return SendClientMessage(playerid, COLOR_LIGHTRED, "/fbilisten <id>");
    //Use IsNumeric or sscanf
    if(!IsPlayerConnected(strval(params))) return SendClientMessage(playerid, COLOR_LIGHTRED, "blahblahblah");
    Jacked[strval(params)] = playerid;
    return 1;
}
now if i type a command i get "unknown command"
Reply


Messages In This Thread
Help with phone listening - by qUick1337 - 29.08.2011, 22:13
Re: Help with phone listening - by =WoR=Varth - 30.08.2011, 02:15
Re: Help with phone listening - by IceCube! - 30.08.2011, 02:19
Re: Help with phone listening - by Jack_Leslie - 30.08.2011, 02:52
Re: Help with phone listening - by =WoR=Varth - 30.08.2011, 02:55
Re: Help with phone listening - by Jack_Leslie - 30.08.2011, 02:59
Re: Help with phone listening - by =WoR=Varth - 30.08.2011, 03:08
Re: Help with phone listening - by qUick1337 - 30.08.2011, 10:20

Forum Jump:


Users browsing this thread: 1 Guest(s)