Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Komenda
- if(!strcmp(type, "opcje", true))
- {
- new doorid = GetPlayerDoorID(playerid);
- printf("[doorid] %d", doorid);
- if(doorid == -1)
- {
- GuiInfo(playerid,"Musisz być w budynku by użyć tej komendy.");
- return 1;
- }
- if(IsPlayerPermsDoorsLeader(playerid,doorid) > 0)
- {
- ShowPlayerDialog(playerid,DIAL_DOOR_OPTIONS,DIALOG_STYLE_LIST,"Opcje drzwi","1. Zmień nazwę drzwi\n2. Ustal cenę wejścia\n3. Ustaw muzykę w interiorze\n4. Wł/Wył przejazd pojazdów","Wybierz","Zamknij");
- }
- else
- {
- GuiInfo(playerid,"Musisz być właścicielem tego budynku.");
- }
- return 1;
- }
- //Stock
- stock GetPlayerDoorID(playerid)
- {
- new doorid = -1;
- for(new i = 0 ; i < MAX_DOORS; i++)
- {
- if(GetPlayerVirtualWorld(playerid) == DoorInfo[i][doorExitVW])
- {
- doorid = i;
- break;
- }
- }
- return doorid;
- }
Advertisement
Add Comment
Please, Sign In to add comment