CMD - 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: CMD (
/showthread.php?tid=533600)
CMD -
JeevanJyothish - 25.08.2014
hello guys I have made a textdraw with Zamaroht's textdraw editor like Unknown Command
how to make that when a player types a cmd that textdraw will come.
Thanks .
*_____________________________*
THANKS
Quote:
Originally Posted by Twizted
If you are using ZCMD, use this:
pawn Код:
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success ) { if(!success) return //Show the textdraw here }
If you're using strcmp, you can use this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { return //Show the textdraw here }
|
Quote:
Originally Posted by NewbieTester
Like This ?
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) { if(!success) TextDrawShowForPlayer(playerid,Unknown Command); return 1; }
|
Re: CMD -
Twizted - 25.08.2014
If you are using ZCMD, use this:
pawn Код:
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success )
{
if(!success)
return //Show the textdraw here
}
If you're using strcmp, you can use this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
return //Show the textdraw here
}
Re: CMD -
JeevanJyothish - 25.08.2014
Quote:
Originally Posted by Twizted
If you are using ZCMD, use this:
pawn Код:
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success ) { if(!success) return //Show the textdraw here }
If you're using strcmp, you can use this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { return //Show the textdraw here }
|
Then YCMD ?
Re: CMD -
NewbieTester - 25.08.2014
Like This ?
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success)
TextDrawShowForPlayer(playerid,Unknown Command);
return 1;
}