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
#2

Have you actually got zcmd included in your gamemode?
Reply
#3

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Have you actually got zcmd included in your gamemode?
As he says, he seems to have everything
Previous Topic
Reply
#4

Quote:
Originally Posted by Shinja
Посмотреть сообщение
As he says, he seems to have everything
Previous Topic
You are right.
Reply
#5

is your script based on a zcmd
are you commands for example CMD/COMMAND or dcmd_ test
if yes then usually commands added with "/" doesnt work on it
if no as long as i know if you are using system cmd with "/" it works automatically with "Server:Unknown Command"

correct me if im wrong
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)