[Pedido] Forзar comando
#1

Queria um cmd paara admin 3001 exemplo /forзarcomando [id] [comando] aн foce como o cara desse o comando..
Reply
#2

vo te dar um Exemplo:
pawn Код:
YCMD:fcomando( p, pr[], h )
{
    new
        cmdtext[ 31 ],
        PlayerID
    ;
    sscanf( pr, "us[25]", PlayerID, cmdtext );
    return OnPlayerCommandReceived( PlayerID, cmdtext ), true;
}
Reply
#3

pawn Код:
cmd_comando(id,params[])
Reply
#4

Explica aew :d
Reply
#5

Quote:
Originally Posted by JowSmith
Посмотреть сообщение
Explica aew :d
explique vc que processador de comandos vc usa?
Reply
#6

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
pawn Код:
cmd_comando(id,params[])
Quote:
Originally Posted by JowSmith
Посмотреть сообщение
Explica aew :d
Usei zcmd .

comando qual e o comando em questгo que estarб sendo forзado.
ID , jogador que sarб forзado.

Reply
#7

sou meio noob nisso, tipo, eu boto aonde? Й sу isso?
Reply
#8

em zcmd:
pawn Код:
// Em zcmd
CMD:comandoid( p, pr[], PlayerID, cmdtext[ 30 ] )
{
    if( sscanf( pr, "us[25]", PlayerID, cmdtext ) ) return SendClientMessage( p, -1, #Use /comandoid [ID] );
    return OnPlayerCommandReceived( PlayerID, cmdtext ), true;
}

//Em YCMD
YCMD:fcomando( p, pr[], h )
{
    new
        cmdtext[ 31 ],
        PlayerID
    ;
    sscanf( pr, "us[25]", PlayerID, cmdtext );
    return OnPlayerCommandReceived( PlayerID, cmdtext ), true;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)