17.10.2013, 11:13
Hey, again. This time I'm having issues with a command of mine. It's probably a really easy fix but my brain can't get it together.
The problem: If you're an admin you can see the commands fine. But if you're a cop and an admin then you can only see the police commands. I want it to work so you can see both if you're a cop and an admin.
The problem: If you're an admin you can see the commands fine. But if you're a cop and an admin then you can only see the police commands. I want it to work so you can see both if you're a cop and an admin.
pawn Код:
CMD:commands(playerid, params[])
{
SCM(playerid, COLOR_GREEN, "_________________________[Server Commands]_________________________");
SendClientMessage(playerid,COLOR_WHITE,"[GENERAL]: /smoke /pay /consume /stats /giverespect /dice /animlist /call");
SendClientMessage(playerid,COLOR_WHITE,"[GENERAL]: /report /stats /placeboombox /setboombox /pickupboombox");
if(IsACop(playerid))
{
SendClientMessage(playerid,COLOR_WHITE,"[POLICE]: /arrest /cuff /uncuff /dooropen /doorclose /cellopen /cellclose");
}
else if(PlayerInfo[playerid][pAdmin] == 1)
{
SendClientMessage(playerid,COLOR_WHITE,"[ADMIN 1]: /acceptreport /markfalse /warn /mute /unmute /freeze /unfreeze /spec /specoff");
SendClientMessage(playerid,COLOR_WHITE,"[ADMIN 1]: /gethere /goto /gethere /clearchat /adminduty");
}
else if(PlayerInfo[playerid][pAdmin] == 2)
{
SendClientMessage(playerid,COLOR_WHITE,"[ADMIN 1]: /acceptreport /markfalse /warn /mute /unmute /freeze /unfreeze /spec /specoff");
SendClientMessage(playerid,COLOR_WHITE,"[ADMIN 1]: /gethere /goto /gethere /clearchat /adminduty");
SendClientMessage(playerid,COLOR_WHITE,"[ADMIN 2]: /kick /setskin /setvw /veh /sethp /setweather /ajail");
}
else if(PlayerInfo[playerid][pAdmin] == 3)
{
SendClientMessage(playerid,COLOR_WHITE,"[ADMIN 1]: /acceptreport /markfalse /warn /mute /unmute /freeze /unfreeze /spec /specoff");
SendClientMessage(playerid,COLOR_WHITE,"[ADMIN 1]: /gethere /goto /gethere /clearchat /adminduty");
SendClientMessage(playerid,COLOR_WHITE,"[ADMIN 2]: /kick /setskin /setvw /veh /sethp /setweather /ajail");
SendClientMessage(playerid,COLOR_WHITE,"[ADMIN 3]: /agivegun /givemoney /ban /unbanip");
}
return 1;
}