how to unkown command, read the topic to understand +rep - 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: how to unkown command, read the topic to understand +rep (
/showthread.php?tid=379874)
how to unkown command, read the topic to understand +rep -
HardBoy - 23.09.2012
hey guys....
how to make when player make a wrong command it tells him
Command Not Found Use /cmds or /commands.!
im using Zcmd
when player write an unkown command it says
unkown command
i want it to be
Command Not Found Use /cmds or /commands.!
Re: how to unkown command, read the topic to understand +rep -
clarencecuzz - 23.09.2012
Example:
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success)
{
return SendClientMessage(playerid, red, "ERROR: {FFFFFF}You Have Entered An Invalid Command. Please Read {00FF00}/CMDS{FFFFFF}.");
}
return 1;
}
Re: how to unkown command, read the topic to understand +rep -
newbienoob - 23.09.2012
pawn Код:
public OnPlayerCommandPerformed(playerid,cmdtext[],success)
{
if(!success) return SendClientMessage(playerid,-1,"Command Not Found. Use /cmds or /commands!");
return 1;
}
EDIT: too late D:
Re: how to unkown command, read the topic to understand +rep -
HardBoy - 23.09.2012
thanks all