View Single Post
Old 12/03/2010, 03:09 PM   #8
Micko9
Guest
 
Posts: n/a
Default Re: [HowTo] Fast command processor: DCMD (0.3 Ready)

It helped for this :
i had secret cmds that anyone can use for fun
i used strcmp like this :
[pawno]
if (strcmp("/secretadmin.teleport",cmdtext,true, 10) == 0) // or however it goes XD
{
// my code here
}

if (strcmp("/secretadmin.weapons",cmdtext,true, 10) == 0) // or however it goes XD
{
// my code here
}
[/pawno]

however that was when i started and i begon to realize that when i typed : /secretadmin
it did one of the commands

when i did : /secretadmin.weapons
i think it did both