[Help]y_commands - 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: [Help]y_commands (
/showthread.php?tid=333738)
[Help]y_commands -
Vectro64 - 12.04.2012
Hello guys!
So, what's about ?:
I work my gamemod with YCMD and know, I make:
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success)
{
format(cmdtext, 128, "{039EFF}MG:RP {FFFFFF}|| {ABAEB0}Komanda koju ste unijeli ne postoji! Za pomoc, kucajte /pomoc!");
SendClientMessage(playerid, -1, cmdtext);
return 1;
}
return 1;
}
But it shows me that text and again SERVER:Unknown command.
So, how I can reove Server:Unkown command?
Thank you!
Re: [Help]y_commands -
Ronaldo_raul™ - 12.04.2012
pawn Код:
public OnPlayerCommandPerformed ( playerid , cmdtext[] , success )
{
if ( ! success )
{
format(cmdtext, 128, "{039EFF}MG:RP {FFFFFF}|| {ABAEB0}Komanda koju ste unijeli ne postoji! Za pomoc, kucajte /pomoc!");
SendClientMessage(playerid, -1, cmdtext);
}
return 1;
}
Tested on live server.
Re: [Help]y_commands -
Vectro64 - 12.04.2012
Ok, thank you very much.
Moderators, you can lock this
Re: [Help]y_commands -
mineralo - 12.04.2012
better just
pawn Код:
public OnPlayerCommandPerformed ( playerid , cmdtext[] , success )
{
if ( ! success )
{
SendClientMessage(playerid, -1, "{039EFF}MG:RP {FFFFFF}|| {ABAEB0}Komanda koju ste unijeli ne postoji! Za pomoc, kucajte /pomoc!"););
}
return 1;
}