04.02.2010, 21:47
Hello guys, I need a little help with this two commands, I'm trying to put rank and team to the commands, but this don't work.
Thanks
Код:
if(strcmp(cmd, "/olspd", true) == 0) { if(gTeam[playerid] == TEAM_LSPD) { if(PlayerInfo[playerid][PoliceRank] >= 1) { MoveObject(olspd,246.411529,72.640029,1000.911437,4.0); return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command."); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You are not a Police Officer."); } }
Код:
if(strcmp(cmd, "/clspd", true) == 0) { if(gTeam[playerid] == TEAM_LSPD) { if(PlayerInfo[playerid][PoliceRank] >= 1) { MoveObject(olspd,246.411529,72.640029,1003.640625,4.0); return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command."); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You are not a Police Officer."); return 1; } }