24.12.2011, 20:44
Your code won't work because:
1st
if(strcmp("/cop", cmdtext, true, 10) ==0)
The length of the command text is not 10 but 4(and this was the main problem)
2nd
If you are not admin it will say the message but also Unknown Command cause you are using return 0
1st
if(strcmp("/cop", cmdtext, true, 10) ==0)
The length of the command text is not 10 but 4(and this was the main problem)
2nd
If you are not admin it will say the message but also Unknown Command cause you are using return 0



