12.03.2010, 14:09
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
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