01.05.2013, 22:26
Try it like this, ofcourse the code thing shot it out wrong, but yeah, it's worth a try, if you make it a gui, that way there's more you can do with it, and it's simpler to work with. Also the IsAHitman wouldn't be needed, you can literally faction id lock that cmd, if you need to know more about that, tell me, i'll prolly even throw together an order cmd for you
Код:
if(strcmp,cmd,"/order",true == 0) { if(IsPlayerConnected(playerid)) { if(IsAHitman(playerid)) { if(IsPlayerInRnageOfPoint(playerid,coords go here) { ShowPlayerDialog(playerid, 310, DIALOG_STYLE_LIST, "Hitman order","Guns\nGuns\nGuns\n"); } } } return 1; } if(dialogid == 310) { if(response) { switch(listitem) { case 0: { if(PlayerInfo[playerid][pRank] >= 1) { GivePlayerWeaponEx(playerid, 22 25); GivePlayerMoneyEx(playerid, -1500) return 1; } } case 1: { if(PlayerInfo[playerid][pRank] >= 1) { you see what i'm doing? return 1; } } } } }