Problem with public
#1

Problem is in this public like he is not in script, when player type wrong command he don't get message for wrong command he get default message unknown command and admin can't see what cmd player type??
Word is about that public, this is my whole public in gamemode and filterscripts...
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) 
{ 
    if(!success) return SendClientMessage(playerid, 0xCD0000FF, "Invalid command. Please use {FFF8CF}/cmds {CD0000}to list all available commands."); 
    new string[100], name[24]; 
    GetPlayerName(playerid, name, 24); 
    format(string,sizeof(string),"%s[%d] has used command %s",name[playerid],playerid,cmdtext); 
    printf("%s has used command %s", name, cmdtext); 
    for(new i=0;i<MAX_PLAYERS;i++) { if(pInfo[i][pLevel] > 4) SendClientMessage(i,-1,string); } 
    return 1; 
}
Reply


Messages In This Thread
Problem with public - by Mijata - 11.08.2016, 22:38
Re: Problem with public - by Sew_Sumi - 11.08.2016, 23:23
Re: Problem with public - by Shinja - 11.08.2016, 23:35
Re: Problem with public - by Mijata - 12.08.2016, 00:39
Re: Problem with public - by ThatFag - 12.08.2016, 00:42

Forum Jump:


Users browsing this thread: 2 Guest(s)