Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:pininfo(playerid, params[])
- {
- new szDialog[1024];
- strcat(szDialog, "Codul PIN este un cod de securitate folosit pentru a iti oferi acces la comenzile de transfer al banilor. Comenzi utie:\n\n");
- strcat(szDialog, "* /addpin - Deschide panoul cu taste si permite introducerea unui cod PIN de 4 cifre.\n");
- strcat(szDialog, "* /changepin - Deschide panoul cu taste si permite schimbarea codului PIN.\n");
- strcat(szDialog, "* /pin - Deschide panoul cu taste si permite deblocarea contului prin introducerea codului PIN.\n");
- strcat(szDialog, "* /lockacc - Aceasta comanda permite blocarea contului.\n");
- ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Security Code Information:", szDialog, "Close", "");
- return 1;
- }
- CMD:pin(playerid, params[])
- {
- if(PinStep[playerid] != 0) return 1;
- if(PlayerInfo[playerid][pPinLogged] == 1) return SendClientMessage(playerid, -1, "{FFFFCC}Eroare: Contul tau este deja deblocat.");
- if(strlen(PlayerInfo[playerid][pPin]) == 1) return SendClientMessage(playerid, -1, "{FFFFCC}Eroare: Trebuie sa adaugi un cod de securitate mai intai. Foloseste /addpin.");
- SendClientMessage(playerid, -1, "{FFFF45}Introdu codul tau de securitate si apasa butonul verde.");
- PinStep[playerid] = 1;
- ShowPinTextDraws(playerid);
- format(InputtText[playerid], 10, "");
- SelectTextDraw(playerid, COLOR_WHITE);
- return 1;
- }
- CMD:addpin(playerid, params[]) {
- if(PinStep[playerid] != 0) return 1;
- if(strlen(PlayerInfo[playerid][pPin]) != 1) return SendClientMessage(playerid, -1, "{FFFFCC}Eroare: Deja ai un cod de securitate setat.");
- SendClientMessage(playerid, -1, "{FFFF45}Introdu un cod de securitate de 4 cifre si apasa butonul verde.");
- PinStep[playerid] = 1;
- ShowPinTextDraws(playerid);
- format(InputtText[playerid], 10, "");
- SelectTextDraw(playerid, COLOR_WHITE);
- return 1;
- }
- CMD:lockacc(playerid, params[]) {
- SendClientMessage(playerid, -1, "{FFFF45}Contul tau a fost blocat. Foloseste /pin pentru a il debloca.");
- PlayerInfo[playerid][pPinLogged] = 0;
- PinStep[playerid] = 0;
- return 1;
- }
- CMD:changepin(playerid, params[]) {
- if(strlen(PlayerInfo[playerid][pPin]) == 1) SendClientMessage(playerid, -1, "{FFFFCC}Eroare: Trebuie sa adaugi un cod de securitate mai intai. Foloseste /addpin.");
- SendClientMessage(playerid, -1, "{FFFF45}Introdu codul tau PIN pentru a te autentifica.");
- PinStep[playerid] = 2;
- ShowPinTextDraws(playerid);
- format(InputtText[playerid], 10, "");
- SelectTextDraw(playerid, COLOR_WHITE);
- return 1;
- }
- function HidePinTextDraws(playerid) {
- TextDrawHideForPlayer(playerid, PinTDs[0]); TextDrawHideForPlayer(playerid, PinTDs[1]); TextDrawHideForPlayer(playerid, PinTDs[2]); TextDrawHideForPlayer(playerid, PinTDs[3]);
- TextDrawHideForPlayer(playerid, PinTDs[4]); TextDrawHideForPlayer(playerid, PinTDs[5]); TextDrawHideForPlayer(playerid, PinTDs[6]); TextDrawHideForPlayer(playerid, PinTDs[7]);
- TextDrawHideForPlayer(playerid, PinTDs[8]); TextDrawHideForPlayer(playerid, PinTDs[9]); TextDrawHideForPlayer(playerid, PinTDs[10]); TextDrawHideForPlayer(playerid, PinTDs[11]);
- TextDrawHideForPlayer(playerid, PinTDs[12]); TextDrawHideForPlayer(playerid, PinTDs[13]);
- PlayerTextDrawHide(playerid, GreenButton); PlayerTextDrawHide(playerid, RedButton);
- PlayerTextDrawHide(playerid, PinNumber[0]); PlayerTextDrawHide(playerid, PinNumber[1]); PlayerTextDrawHide(playerid, PinNumber[2]); PlayerTextDrawHide(playerid, PinNumber[3]);
- PlayerTextDrawHide(playerid, PinNumber[4]); PlayerTextDrawHide(playerid, PinNumber[5]); PlayerTextDrawHide(playerid, PinNumber[6]); PlayerTextDrawHide(playerid, PinNumber[7]);
- PlayerTextDrawHide(playerid, PinNumber[8]); PlayerTextDrawHide(playerid, PinNumber[9]);
- PlayerTextDrawHide(playerid, PinResult);
- PlayerTextDrawSetString(playerid, PinResult, "");
- return 1;
- }
- function ShowPinTextDraws(playerid) {
- TextDrawShowForPlayer(playerid, PinTDs[0]); TextDrawShowForPlayer(playerid, PinTDs[1]); TextDrawShowForPlayer(playerid, PinTDs[2]); TextDrawShowForPlayer(playerid, PinTDs[3]);
- TextDrawShowForPlayer(playerid, PinTDs[4]); TextDrawShowForPlayer(playerid, PinTDs[5]); TextDrawShowForPlayer(playerid, PinTDs[6]); TextDrawShowForPlayer(playerid, PinTDs[7]);
- TextDrawShowForPlayer(playerid, PinTDs[8]); TextDrawShowForPlayer(playerid, PinTDs[9]); TextDrawShowForPlayer(playerid, PinTDs[10]); TextDrawShowForPlayer(playerid, PinTDs[11]);
- TextDrawShowForPlayer(playerid, PinTDs[12]); TextDrawShowForPlayer(playerid, PinTDs[13]);
- PlayerTextDrawShow(playerid, GreenButton); PlayerTextDrawShow(playerid, RedButton);
- PlayerTextDrawShow(playerid, PinNumber[0]); PlayerTextDrawShow(playerid, PinNumber[1]); PlayerTextDrawShow(playerid, PinNumber[2]); PlayerTextDrawShow(playerid, PinNumber[3]);
- PlayerTextDrawShow(playerid, PinNumber[4]); PlayerTextDrawShow(playerid, PinNumber[5]); PlayerTextDrawShow(playerid, PinNumber[6]); PlayerTextDrawShow(playerid, PinNumber[7]);
- PlayerTextDrawShow(playerid, PinNumber[8]); PlayerTextDrawShow(playerid, PinNumber[9]);
- PlayerTextDrawShow(playerid, PinResult);
- return 1;
- }
- function UpdatePinResult(playerid) {
- if(strlen(InputtText[playerid]) == 1) PlayerTextDrawSetString(playerid, PinResult, "[]");
- else if(strlen(InputtText[playerid]) == 2) PlayerTextDrawSetString(playerid, PinResult, "[[]]");
- else if(strlen(InputtText[playerid]) == 3) PlayerTextDrawSetString(playerid, PinResult, "[[[]]]");
- else if(strlen(InputtText[playerid]) == 4) PlayerTextDrawSetString(playerid, PinResult, "[[[[]]]]");
- return 1;
- }
- public OnPropTextdrawUpdate(update, h)
- {
- new PropertyString[256];
- if(update == 1)
- {
- if(HouseInfo[h][hOwned] == 0)
- {
- DestroyDynamic3DTextLabel(HouseLabel[h]);
- DestroyDynamicPickup(HouseInfo[h][hPickupID]);
- HouseInfo[h][hPickupID] = CreateDynamicPickup(1273, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
- format(PropertyString, sizeof(PropertyString),"{FFFFFF}Casa {54CC56}%d \n{FFFFFF}Aceasta casa este de vanzare\nDescription: {54CC56}%s \n{FFFFFF}Valoare: {54CC56}$%s \n{FFFFFF}Nivel: {54CC56}%d \n{FFFFFF}Pentru a cumpara aceasta casa, tasteaza {54CC56}/buyhouse",h,HouseInfo[h][hDiscription],FormatNumber(HouseInfo[h][hValue]),HouseInfo[h][hLevel]);
- HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x09FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
- }
- else if(HouseInfo[h][hOwned] == 1)
- {
- if(HouseInfo[h][hRentabil] == 1)
- {
- DestroyDynamic3DTextLabel(HouseLabel[h]);
- format(PropertyString, sizeof(PropertyString),"{54CC56}%s{FFFFFF}\nCasa {54CC56}%d \n{FFFFFF}Casa detinuta de: {54CC56}%s \n{FFFFFF}Chirie: {54CC56}$%s \n{FFFFFF}Nivel: {54CC56}%d \n{FFFFFF}Pentru a lua chirie la aceasta casa, tasteaza {54CC56}/rentroom",HouseInfo[h][hDiscription],h,HouseInfo[h][hOwner],FormatNumber(HouseInfo[h][hRent]),HouseInfo[h][hLevel]);
- HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x09FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
- }
- else
- {
- DestroyDynamic3DTextLabel(HouseLabel[h]);
- format(PropertyString, sizeof(PropertyString),"{54CC56}%s{FFFFFF}\nCasa {54CC56}%d \n{FFFFFF}Casa detinuta de: {54CC56}%s \n{FFFFFF}Nivel: {54CC56}%d",HouseInfo[h][hDiscription],h,HouseInfo[h][hOwner], HouseInfo[h][hLevel]);
- HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x09FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
- }
- DestroyDynamicPickup(HouseInfo[h][hPickupID]);
- HouseInfo[h][hPickupID] = CreateDynamicPickup(1272, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
- }
- }
- else if(update == 2)
- {
- if(BizzInfo[h][bOwned] == 0)
- {
- DestroyDynamic3DTextLabel(BizzLabel[h]);
- format(PropertyString, sizeof(PropertyString),"{FFFFFF}Afacere {1569C7}%d \n%s{FFFFFF} \n{FFFFFF}Aceasta afacere este de vanzare \n {FFFFFF}Valoare: {1569C7}%s \n{FFFFFF}Nivel: {1569C7}%d \n{FFFFFF}Pentru a cumpara aceasta afacere, tasteaza {1569C7}/buybiz",h,BizzInfo[h][bMessage],FormatNumber(BizzInfo[h][bBuyPrice]),BizzInfo[h][bLevelNeeded]);
- BizzLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x0066FFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
- }
- else if(BizzInfo[h][bOwned] == 1)
- {
- DestroyDynamic3DTextLabel(BizzLabel[h]);
- format(PropertyString, sizeof(PropertyString),"{FFFFFF}Afacere {1569C7}%d \n%s{FFFFFF} \n{FFFFFF}This Afacere is owned by {1569C7}%s \n{FFFFFF}Taxa de intrare: {1569C7}$%s\n{FFFFFF}Nivel:{1569C7} %d",h,BizzInfo[h][bMessage],BizzInfo[h][bOwner],FormatNumber(BizzInfo[h][bEntranceCost]),BizzInfo[h][bLevelNeeded]);
- BizzLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x0066FFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
- }
- }
- else if(update == 3)
- {
- if(SBizzInfo[h][sbOwned] == 0)
- {
- DestroyDynamic3DTextLabel(SBizzLabel[h]);
- format(PropertyString, sizeof(PropertyString),"{FFFFFF}Afacere {1569C7}%d \n%s{FFFFFF} \n{FFFFFF}Aceasta afacere este de vanzare \n{FFFFFF}Valoare:{1569C7} $%s \n{FFFFFF}Nivel:{1569C7} %d \n{FFFFFF}Pentru a cumpara aceasta afacere, tasteaza {1569C7}/buybiz",h,SBizzInfo[h][sbMessage],FormatNumber(SBizzInfo[h][sbBuyPrice]),SBizzInfo[h][sbLevelNeeded]);
- SBizzLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x0066FFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
- }
- else if(SBizzInfo[h][sbOwned] == 1)
- {
- DestroyDynamic3DTextLabel(SBizzLabel[h]);
- format(PropertyString, sizeof(PropertyString),"{FFFFFF}Afacere {1569C7}%d \n%s{FFFFFF} \n{FFFFFF}This Afacere is owned by {1569C7}%s\n{FFFFFF}Taxa:{1569C7} $%s\n{FFFFFF}Nivel:{1569C7} %d",h,SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],FormatNumber(SBizzInfo[h][sbEntranceCost]),SBizzInfo[h][sbLevelNeeded]);
- SBizzLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x0066FFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement