Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:opencase(playerid, params[])
- {
- if(PlayerInfo[playerid][pKeys] == 0 && PlayerInfo[playerid][pCases] == 0)return SCM(playerid, COLOR_LIGHTRED, "Nu ai nici o cutie si nici o cheie");
- if(PlayerInfo[playerid][pKeys] > 0 && PlayerInfo[playerid][pCases] == 0)return SCM(playerid, COLOR_LIGHTRED, "Nu ai o cutie pentru a deschide cu acceasta cheie");
- if(PlayerInfo[playerid][pKeys] == 0 && PlayerInfo[playerid][pCases] > 0)return SCM(playerid, COLOR_LIGHTRED, "Nu ai o cheie pentru a deschide acceasta cutie");
- PlayerInfo[playerid][pCases] -= 1;
- PlayerInfo[playerid][pKeys] -= 1;
- Update(playerid, pCasesx);
- Update(playerid, pKeysx);
- TextDrawShowForPlayer(playerid, OpenCase[0]);
- TextDrawShowForPlayer(playerid, OpenCase[1]);
- TextDrawShowForPlayer(playerid, OpenCase[2]);
- TextDrawShowForPlayer(playerid, OpenCase[3]);
- PlayerTextDrawShow(playerid, PlayerOpenCase[playerid][0]);
- PlayerTextDrawShow(playerid, PlayerOpenCase[playerid][1]);
- PlayerTextDrawShow(playerid, PlayerOpenCase[playerid][2]);
- SelectTextDraw(playerid, 0x33CCFFFF);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement