07.03.2013, 19:49
Queria um cmd paara admin 3001 exemplo /forзarcomando [id] [comando] aн foce como o cara desse o comando..
YCMD:fcomando( p, pr[], h )
{
new
cmdtext[ 31 ],
PlayerID
;
sscanf( pr, "us[25]", PlayerID, cmdtext );
return OnPlayerCommandReceived( PlayerID, cmdtext ), true;
}
cmd_comando(id,params[])
// 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;
}