29.12.2012, 20:43
(
Последний раз редактировалось aslan890; 29.12.2012 в 22:36.
)
Hi guys i got [GM] using it on VPS and 0 Lag and I got some Bugs like House buy Logo's [PICK UP] is like sometimes doesn't appear on the door's + map so some people can't Buy house because of that and some other stuff like Suddenly
when i type something on the chat box it appears like after 20 sec Can someone help me for it please...
Problems:
-House Logo doesn't appear sometimes. - like when i drive car i so house and i bought + i restart my server, To check did it save it but i can't see some house pick ups there to buy + on the map but still some houses logos are there.
-When Teleporting Some place or To player - Object Buildings Load kind of Slow
-The Code Don't have Bugs i believe
This is my /teleport command
House:
when i type something on the chat box it appears like after 20 sec Can someone help me for it please...
Problems:
-House Logo doesn't appear sometimes. - like when i drive car i so house and i bought + i restart my server, To check did it save it but i can't see some house pick ups there to buy + on the map but still some houses logos are there.
-When Teleporting Some place or To player - Object Buildings Load kind of Slow
-The Code Don't have Bugs i believe
This is my /teleport command
Код:
} if(strcmp(cmd, "/teleport", true) == 0 || strcmp(cmd, "/tp", true) == 0) { if(PlayerInfo[playerid][pAdmin] >= 3) { if(dostup[playerid] != 1) return ShowPlayerDialog(playerid,2934,DIALOG_STYLE_INPUT, "Yцnetici yetkilendirme", "Sifreyi girin\n\nSifre latin harfleri ve rakamlar dan olusmali\n Yukari 6 ila 15 sembol iзin olarak", "Giris", "Iptal"); new listitems[] = "Yol servis istasyonu\nWinwood\nMerkezi SF\nMerkezi LV\nFBI\nYьkleyiciler Зalisma\nAzinlik Mahallesi\nOkul Sьrьs\nWood\nOtogar-2\nBaskanin ofisi\nBanka\nBцlge 51 Kontrol Noktalari\nCasino Bellagio\nAmmo LS\nUзak gemisi park\nOrdu 51 Anayasasi\nMotorlu-Tasit havuzu\nYarislari\nYцnetici kцyь\nAero LS\nPaintBall\nMotosiklet yarislari\nHapishane Ls\nHapishane Hilecileri"; ShowPlayerDialog(playerid, 9000, DIALOG_STYLE_LIST, "Teleport List", listitems, "Seз","Kapat"); } else { SendClientMessage(playerid, COLOR_GREY, "Bu komutu kullanmak iзin yetkiniz yok!"); return true; } return true; }
Код:
stock BuyHouse() { for(new h = 0; h < sizeof(HouseInfo); h++) { if(HouseInfo[h][hOwned] == 0) { DestroyDynamicMapIcon(HouseInfo[h][hMIcon]); DestroyPickup(HouseInfo[h][hPickup]); AddStaticPickup(1273, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); pickups++; HouseInfo[h][hMIcon] = CreateDynamicMapIcon(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 31, COLOR_WHITE, 0, -1, -1); } if(HouseInfo[h][hOwned] == 1) { DestroyDynamicMapIcon(HouseInfo[h][hMIcon]); DestroyPickup(HouseInfo[h][hPickup]); AddStaticPickup(1272, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); pickups++; HouseInfo[h][hMIcon] = CreateDynamicMapIcon(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 32, COLOR_WHITE, 0, -1, -1); } } return true; }
Код:
//============================== Таймеры =================================== synctimer = SetTimer("SyncUp", 5000, 1); unjailtimer = SetTimer("SetPlayerUnjail", 1000, 1); advertisetimer = SetTimer("AdvertiseTimer",350000,1); CheckCheatersTimer = SetTimer("CheckCheaters", 5000, 1); freshtimer = SetTimer("Fresh",1000,1); TT = SetTimer("CountEx", 5000,1); othtimer = SetTimer("OtherTimer", 3000, 1); Hptimer = SetTimer("HPCheck", 300000, 1); pickuptimer = SetTimer("CustomPickups", 3600, 1); GzCheckTimer = SetTimer("GzCheck",5000,1); MzCheckTimer = SetTimer("MzCheck",10000,1); //==========================================================================
Код:
public CustomPickups() { new Float:oldposx, Float:oldposy, Float:oldposz; new string[128]; new enters[256]; NameTimer(); DollahScoreUpdate(); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(startaddiction[i] == 1) { if(PlayerInfo[i][pAddiction] >=1000) { if(send[i] == 0) { SendClientMessage(i, COLOR_REDD, "Size yikim basladi"); SendClientMessage(i, COLOR_WHITE, "Dozu kabul etmek iзin: /usedrugs Veya hizli yol iзin: /c "); send[i] = 1; } ApplyAnimation(i, "CRACK", "crckdeth1", 4.0, 1, 0, 0, 0, 0); send[i] = 1; } } GetPlayerPos(i, oldposx, oldposy, oldposz); if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0) { for(new b = 0; b < sizeof(AvtoInfo); b++) { if (PlayerToPoint(1, i,AvtoInfo[b][abEntranceX], AvtoInfo[b][abEntranceY], AvtoInfo[b][abEntranceZ])) { if(AvtoInfo[b][abOwned] == 0) { format(enters,sizeof(enters), "Bir onarim kamyon satin almak ister misiniz?"); ShowPlayerDialog(i,9829,DIALOG_STYLE_MSGBOX, "Onarim kamyon satiliyor", enters, "Evet", "Yok"); return true; }