Problem with public - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with public (
/showthread.php?tid=614731)
Problem with public -
Mijata - 11.08.2016
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;
}
Re: Problem with public -
Sew_Sumi - 11.08.2016
Have you actually got zcmd included in your gamemode?
Re: Problem with public -
Shinja - 11.08.2016
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
Re: Problem with public -
Mijata - 12.08.2016
Quote:
Originally Posted by Shinja
|
You are right.
Re: Problem with public -
ThatFag - 12.08.2016
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