21.02.2013, 19:18
Quote:
Try this dude:
if(strcmp(cmdtext,"/jetpack",true) == 0) { if(PlayerInfo[playerid][pAdmin] >= 5) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USE JETPACK); SendClientMessage(playerid, COLOR_LIGHTBLUE, "**Now fly away!"); } else { SendClientMessage(playerid, COLOR_GREY, "**You cant use this command!"); } return 1; } |
Secondly, you will make things worse.
2 things that are wrong in that code, because you copied it from another script,
-It will cause many warnings, due to the indentation.
-There will be errors, because he might not use pAdmin, he could just use Rcon, or another Admin script.
And four tips,
-Don't copy code from another script
-Ask him what command processor he uses. Maybe strcmp, zcmd, dcmd or ycmd.
-Use code tags for scripts.
-Indent your code!