Originally Posted by Josma_cmd
pawn Код:
{ if (strcmp("/buyglasses", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid,25,DIALOG_STYLE_LIST,"Glasses","Glasses Type 1 \nGlasses Type 2 \nGlasses Type 3 \nGlasses Type 4 \nGlasses Type 5 \nGlasses Type 6 \nGlasses Type 7 \nGlasses Type 8 \nGlasses Type 9 \nGlasses Type 10 \nNext Page","Open","Close"); return 1; } if (strcmp("/removeglasses",cmdtext,true, 10) == 0) { if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1); return 1; } return 1; }
Replace to
pawn Код:
{ if (strcmp("/buyglasses", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid,25,DIALOG_STYLE_LIST,"Glasses","Glasses Type 1 \nGlasses Type 2 \nGlasses Type 3 \nGlasses Type 4 \nGlasses Type 5 \nGlasses Type 6 \nGlasses Type 7 \nGlasses Type 8 \nGlasses Type 9 \nGlasses Type 10 \nNext Page","Open","Close"); return 1; } if (strcmp("/removeglasses",cmdtext,true, 10) == 0) { if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1); return 1; } return 0; }
|