#1

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;
}
Reply
#2

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
}
Reply
#3

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 ?
Reply
#4

Like This ?
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
        TextDrawShowForPlayer(playerid,Unknown Command);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)