Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // tìm // Object va them cai nay ben tren
- #define THERATU (6070)
- // them lenh
- CMD:theratu(playerid, params[])
- {
- if(PlayerInfo[playerid][pJailTime] > 0)
- {
- ShowPlayerDialog(playerid, THERATU, DIALOG_STYLE_MSGBOX, "Card Out Prison", "{FFFFFF}Ban co muon roi khoi day ngay bay gio voi gia 1500 credits?", "Dong y", "Huy bo");
- }
- return 1;
- }
- // tim public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) them vao day
- if(dialogid == THERATU)
- {
- if(response)
- {
- if(PlayerInfo[playerid][pCredits] >= 1500)
- {
- PlayerInfo[playerid][pWantedLevel] = 0;
- PlayerInfo[playerid][pBeingSentenced] = 0;
- SetPlayerToTeamColor(playerid);
- SetPlayerHealth(playerid, 100);
- SetPlayerWantedLevel(playerid, 0);
- PlayerInfo[playerid][pJailTime] = 0;
- SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerToTeamColor(playerid);
- PlayerInfo[playerid][pCredits] -=1500;
- SendClientMessageEx(playerid, COLOR_RED, "Ban da mua the ra tu voi gia 1500 credits!");
- }
- else return SendClientMessageEx(playerid, COLOR_RED, "Ban khong du 1500 credits du mua the ra tu!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement