 |
|
 |
|
|
|
Последние Файлы GTA 4 |
Последние Файлы GTA-MP |
Реклама |
|
|
|
|
|
[Архив] Помощь новичкам по скриптингу ! #2
| |
| heufix | Дата: Понедельник, 28.09.2009, 02:59 | Сообщение # 1 |
|
Уважаемый человек
Группа:
Продвинутые
Сообщений: 995
Награды: 22
Репутация: 231
Замечания: 80%
Статус: 
| Здравствуйте, хотите научиться скриптингу? пишите сюда, помoжем!(С)[PZ]KYZ[AIR]. Старая Тема уже достаточно полна ответов, это продолжение первой темы. Убедительная просьба к Новичкам: К большому сожалению, на этом форуме экстрасенсы не сидят,поэтому убедительно просим объяснять ваш вопрос/проблему ТАК,чтобы её поняли другие участники, не забывайте приписывать ваш код к своему сообщению(в тег pwn).
Радость
|
| |
|
|
| Defrago | Дата: Пятница, 13.05.2011, 14:25 | Сообщение # 3271 |
|
Новенький
Группа:
Пользователи
Сообщений: 33
Награды: 1
Город: Екатеринбург
Репутация: 2
Замечания: 0%
Статус: 
| Nixonchik, Через pawno не осуществимо?
|
| |
|
|
| nemec902 | Дата: Пятница, 13.05.2011, 23:00 | Сообщение # 3272 |
|
Новенький
Группа:
Пользователи
Сообщений: 5
Награды: 0
Город: Москва
Репутация: 0
Замечания: 0%
Статус: 
| Помогите сделать что бы машины на сервере пропадали только через мин 40. Я сделал #define SPAWN_CARS 2400 так но ничего не изменилось пробывал и так #define SPAWN_CARS 24000000 И всё равно не получилось кар пропадает буквально через секунд 20.... Подскажите что делать.Если можно то подробно)
|
| |
|
|
| iLovePivo | Дата: Суббота, 14.05.2011, 11:47 | Сообщение # 3273 |
|
Уверенный в себе
Группа:
Пользователи
Сообщений: 251
Награды: 5
Город: Ростов На Дону
| Я в моде включил систему парковак и вот что пошло помогите исправить! [cut noguest=Ошибочки][/cut]C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2174) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2178) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2182) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2186) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2271) : error 004: function "GivePlayerMoneyNoCheat" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2301) : error 004: function "GivePlayerMoneyNoCheat" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2726) : warning 204: symbol is assigned a value that is never used: "leader" C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2819) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2823) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2835) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2839) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2843) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2847) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2851) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2855) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2859) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2863) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2875) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2879) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2891) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2895) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2899) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2903) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2907) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2919) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2923) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ëåîíèä\Desktop\Íîâàÿ ïàïêà\pawno\corp.pwn(2927) : error 004: function "PlayerToPoint" is not implemented Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors. + Дам
---
Сообщение отредактировал iLovePivo - Суббота, 14.05.2011, 11:48 |
| |
|
|
| Dima-kun | Дата: Суббота, 14.05.2011, 13:33 | Сообщение # 3274 |
|
Группа:
Разработчики
Сообщений: 6269
Награды: 72
Репутация: 3512
Замечания: 0%
Статус: 
| iLovePivo, скобку где-то потерял
Мои работы: [INC] Сборник d_includes [LAST],[FS] New Demage Effect,[FS]Авто-Поворотники, [FS]mp3player,[FS] Fun Chat Game,[FS] Car Buy Syst,[FS] Anti-AirBrk,[INC] d_setpos, [GM] Game Move v0.1,[FS+include]Super-Armour [0.3z],[FS + Include] Multi Checkpoints
|
| |
|
|
| iLovePivo | Дата: Воскресенье, 15.05.2011, 21:03 | Сообщение # 3275 |
|
Уверенный в себе
Группа:
Пользователи
Сообщений: 251
Награды: 5
Город: Ростов На Дону
| Quote (Morino_Reigan) iLovePivo, скобку где-то потерял Quote [code]//====================================Ñèñòåìà ïàðêîâîê äëÿ ñêðâåðà=)============================== / //-----------------------------------[park system]----------------------------------------- if(strcmp(cmd, "/buypark", true) == 0) { new plname[256], str[256], s2[256]; GetPlayerName(playerid, plname, 256); for(new i = 0; i < 10; i++) { if(!strcmp(Parking[i][Owner], plname)) { SendClientMessage(playerid,COLOR_YELLOW, " Ó âàñ åñòü ìàøèíà!!! "); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); return 1; } } for(new u = 0; u < 10; u++) { if(GetPlayerVehicleID(playerid) == Parking[u][Vehicleid] && strcmp(Parking[u][Owner], " The state ")) { GivePlayerMoneyNoCheat(playerid, -10000); GetPlayerName(playerid,Parking[u][Owner], MAX_PLAYER_NAME); format(str, 256, "%s,%f,%f,%f,%f,%d,%d,%d",Parking[u][Owner],StandartPark[u][spawnx], StandartPark[u][spawny], StandartPark[u][spawnz], StandartPark[u][spawna],Parking[u][vehcolor1],Parking[u][vehcolor2],Parking[u][modeli]); valstr(s2, u); dini_Set("parking.ini", s2, str); //Parking[u][Vehicleid] = CreateVehicle(Parking[u][modeli],Parking[u][spawnx],Parking[u][spawny],Parking[u][spawnz], Parking[u][spawna], Parking[u][vehcolor1], Parking[u][vehcolor2], 60000); SendClientMessage(playerid,COLOR_YELLOW, " Ïîçäðàâëÿåì, âû êóïèëè ñîáñòâåííóþ ìàøèíó! "); TogglePlayerControllable(playerid, 1); return 1; } } return 1; } //======================================== if (strcmp(cmd, "/parkcolor", true) == 0) { new pname[MAX_PLAYER_NAME], s2[256], str[256]; { new tmp[256]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) {SendClientMessage(playerid,COLOR_YELLOW, " Èñïîëüçóéòå /parkcolor [color1] [color2] ");return 1;} { new color1 = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) {SendClientMessage(playerid,COLOR_YELLOW, " Èñïîëüçóéòå /parkcolor [color1] [color2] ");return 1;} { new color2 = strval(tmp); if(color1 < 0 || color1 > 150 ||color2 < 0 || color2 > 150) {SendClientMessage(playerid,COLOR_YELLOW, " Öâåòà íå íèæå 0 è íå âûøå 150!!! ");return 1;} for(new u = 0; u < 10; u++) { GetPlayerName(playerid,pname,MAX_PLAYER_NAME); if(strcmp(pname, Parking[u][Owner]) == 0) { Parking[u][vehcolor1] = color1; Parking[u][vehcolor2] = color2; format(str, 256, "%s,%f,%f,%f,%f,%d,%d,%d",Parking[u][Owner],Parking[u][spawnx], Parking[u][spawny], Parking[u][spawnz], Parking[u][spawna],color1,color2,Parking[u][modeli]); valstr(s2, u); dini_Set("parking.ini", s2, str); DestroyVehicle(Parking[u][Vehicleid]); SendClientMessage(playerid,COLOR_YELLOW, " Ìàøèíà îòïðàâëåíà íà ïîêðàñêó! "); return 1; } } return 1; } if (strcmp(cmd, "/vpark", true) == 0) { new pname[MAX_PLAYER_NAME], float:posx,float:posy,float:posz,float:posa, str[256], s2[256]; GetPlayerName(playerid,pname,MAX_PLAYER_NAME); for(new u = 0; u < 10; u++) { if(GetPlayerVehicleID(playerid) == Parking[u][Vehicleid] && !strcmp(pname, Parking[u][Owner])) { GetVehiclePos(Parking[u][Vehicleid], posx, posy, posz); GetVehicleZAngle(Parking[u][Vehicleid], posa); DestroyVehicle(Parking[u][Vehicleid]); CreateVehicle(Parking[u][modeli], posx, posy, posz, posa, Parking[u][vehcolor1],Parking[u][vehcolor2], 60000); format(str, 256, "%s,%f,%f,%f,%f,%d,%d,%d",Parking[u][Owner],posx, posy, posz, posa,Parking[u][vehcolor1],Parking[u][vehcolor2],Parking[u][modeli]); valstr(s2, u); dini_Set("parking.ini", s2, str); SendClientMessage(playerid,COLOR_YELLOW, " Ìàøèíà ïðèïàðêîâàíà! "); return 1; } } SendClientMessage(playerid,COLOR_YELLOW, " Âû íå â ñâîåé ìàøèíå èëè ó âàñ íåò ìàøèíû! "); return 1; } //======================================== //======================================================================== if(strcmp(cmd, "/sellpark", true) == 0) { new plname[MAX_PLAYER_NAME], str[256], s2[256]; for(new u = 0; u < 10; u++) { if(GetPlayerVehicleID(playerid) == Parking[u][Vehicleid] && strcmp(Parking[u][Owner], plname) == 0) { DestroyVehicle(Parking[u][Vehicleid]); format(Parking[u][Owner], MAX_PLAYER_NAME, " The state "); Parking[u][spawnx] = StandartPark[u][spawnx]; Parking[u][spawny] = StandartPark[u][spawny]; Parking[u][spawnz] = StandartPark[u][spawnz]; Parking[u][spawna] = StandartPark[u][spawna]; Parking[u][vehcolor1] = StandartPark[u][vehcolor1]; Parking[u][vehcolor2] = StandartPark[u][vehcolor2]; Parking[u][modeli] = StandartPark[u][modeli]; new str[256], s2[256]; format(str, 256, "%s,%f,%f,%f,%f,%d,%d,%d",Parking[u][Owner],StandartPark[u][spawnx], StandartPark[u][spawny], StandartPark[u][spawnz], StandartPark[u][spawna],Parking[u][vehcolor1],Parking[u][vehcolor2],Parking[u][modeli]); valstr(s2, u); dini_Set("parking.ini", s2, str); Parking[u][Vehicleid] = CreateVehicle(Parking[u][modeli],Parking[u][spawnx],Parking[u][spawny],Parking[u][spawnz], Parking[u][spawna], Parking[u][vehcolor1], Parking[u][vehcolor2], 60000); GivePlayerMoneyNoCheat(playerid, 5000); } } return 1; } //------------------------------------------------------------------------ // if (strcmp(cmd, "/parkcarcolor", true) == 0) { if(IsPlayerConnected(playerid)) { new park = PlayerInfo[playerid][pParkkey]; GetPlayerName(playerid, playername, sizeof(playername)); if (park != 255 && strcmp(playername, ParkInfo[PlayerInfo[playerid][pParkkey]][parkOwner], true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD3,"($5000) Èñïîëüçóéòå: /parkcarcolor [color 1 - 2] [color number]"); return 1; } new colornum = strval(tmp); if(colornum > 2 || colornum < 1) { SendClientMessage(playerid, COLOR_GRAD3,"Ââåäèòå öâåò 1 èëè 2"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD3,"($5000) Èñïîëüçóéòå: /parkcarcolor [color 1 - 2] [color number]"); } new color = strval(tmp); if(color > 126) { SendClientMessage(playerid, COLOR_GRAD3,"Öâåò äîëæåí áûòü ìåíüøå 126"); return 1; } if (GetPlayerMoney(playerid) < 5000) { SendClientMessage(playerid, COLOR_GRAD3," Âû íå èìååòå íà ñ÷åòó ($5000)"); } if(colornum == 1) { ParkInfo[park][parkVcol1] = color; format(string, sizeof(string), "Ïåðâûé öâåò óñòàíîâëåí íà: %d (-$5000)",color); SendClientMessage(playerid, COLOR_GRAD3,string); } else { ParkInfo[park][parkVcol2] = color; format(string, sizeof(string), "Âòîðîé öâåò óñòàíîâëåí íà: %d (-$5000)",color); SendClientMessage(playerid, COLOR_GRAD3,string); } SendClientMessage(playerid, COLOR_GRAD6, "Ìàøèíà ïåðåêðàøåíà! Öâåò áóäåò óñòàíîâëåí â òå÷åíèè 24 ÷àñîâ"); GivePlayerMoney(playerid,-5000); SBizzInfo[5][sbTill] += 5000; ExtortionSBiz(5, 5000); PlayerPlaySound(giveplayerid, 1134, 0.0, 0.0, 0.0); OnPropUpdate(); } else { SendClientMessage(playerid, COLOR_GRAD2, " Au ia aeaaaaoa aiiii"); return 1; } } return 1; } if (strcmp(cmd, "/parkcarupgrade", true) == 0) { if(IsPlayerConnected(playerid)) { new park = PlayerInfo[playerid][pParkkey]; GetPlayerName(playerid, playername, sizeof(playername)); if (park != 255 && strcmp(playername, ParkInfo[PlayerInfo[playerid][pParkkey]][parkOwner], true) == 0) { new gunid[16]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { format(string, sizeof(string), " ENIIEUCOEOA: /parkcarupgrade [carname]"); SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); SendClientMessage(playerid, COLOR_WHITE,"*** Caiaia aaoi ia ia?eiaea noieo $100000 ***"); SendClientMessage(playerid, COLOR_GRAD2,string); SendClientMessage(playerid, COLOR_GRAD3, " Aaoi: blistacompact clover elegant emperor glendale greenwood"); SendClientMessage(playerid, COLOR_GRAD3, " Aaoi: huntley jester landstalker merit nebula sabre stratum"); SendClientMessage(playerid, COLOR_GRAD3, " Aaoi: sunrise tahoma uranus phoenix stretch"); SendClientMessage(playerid, COLOR_GRAD3, " VIP aaoi: remington elegy hotknife bandito sultan rancher"); SendClientMessage(playerid, COLOR_GRAD3, " VIP aaoi: buffalo"); SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); return 1; } if(SBizzInfo[5][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~iE?OC?A?O?iO ?A?ACO‹", 5000, 1); return 1; } strmid(gunid, tmp, 0, strlen(cmdtext), 255); if (GetPlayerMoney(playerid) > 100000) { if(strcmp(gunid, "stretch", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Stretch"); ParkInfo[park][parkVec] = 409; } else if(strcmp(gunid, "hotknife", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Hotknife"); ParkInfo[park][parkVec] = 434; } else if(strcmp(gunid, "bandito", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Bandito"); ParkInfo[park][parkVec] = 568; } else if(strcmp(gunid, "sultan", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Sultan"); ParkInfo[park][parkVec] = 560; } else if(strcmp(gunid, "elegy", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Elegy"); ParkInfo[park][parkVec] = 562; } else if(strcmp(gunid, "phoenix", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Phoenix"); ParkInfo[park][parkVec] = 603; } else if(strcmp(gunid, "blistacompact", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Blista Compact"); ParkInfo[park][parkVec] = 496; } else if(strcmp(gunid, "clover", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Clover"); ParkInfo[park][parkVec] = 542; } else if(strcmp(gunid, "elegant", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Elegant"); ParkInfo[park][parkVec] = 507; } else if(strcmp(gunid, "emperor", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo A Emperor"); ParkInfo[park][parkVec] = 585; } else if(strcmp(gunid, "glendale", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Glendale"); ParkInfo[park][parkVec] = 466; } else if(strcmp(gunid, "greenwood", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Greenwood"); ParkInfo[park][parkVec] = 492; } else if(strcmp(gunid, "huntley", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Huntley"); ParkInfo[park][parkVec] = 579; } else if(strcmp(gunid, "jester", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Jester"); ParkInfo[park][parkVec] = 559; } else if(strcmp(gunid, "landstalker", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Landstalker"); ParkInfo[park][parkVec] = 400; } else if(strcmp(gunid, "merit", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaeeia ia?eiaeo Merit"); ParkInfo[park][parkVec] = 551; } else if(strcmp(gunid, "nebula", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Nebula"); ParkInfo[park][parkVec] = 516; } else if(strcmp(gunid, "sabre", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Sabre"); ParkInfo[park][parkVec] = 475; } else if(strcmp(gunid, "stratum", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Stratum"); ParkInfo[park][parkVec] = 561; } else if(strcmp(gunid, "sunrise", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Sunrise"); ParkInfo[park][parkVec] = 550; } else if(strcmp(gunid, "tahoma", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Tahoma"); ParkInfo[park][parkVec] = 566; } else if(strcmp(gunid, "uranus", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Uranus"); ParkInfo[park][parkVec] = 558; } else if(strcmp(gunid, "remington", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "* Iaiiaeaiea aaoi: Au caeacaee ia ia?eiaeo Remington"); ParkInfo[park][parkVec] = 534; } else if(strcmp(gunid, "buffalo", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "* Iaiiaeaiea aaoi: Au caeacaee ia ia?eiaeo Remington"); ParkInfo[park][parkVec] = 402; } else if(strcmp(gunid, "rancher", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "* Iaiiaeaiea aaoi: Au caeacaee ia ia?eiaeo Remington"); ParkInfo[park][parkVec] = 489; } else { SendClientMessage(playerid, COLOR_GRAD6, " Iaecaanoiue aaoiiiaeeu o?aaoao aunieiai ?aiaa."); return 1; } SendClientMessage(playerid, COLOR_GRAD6, " Iiaay iaoeia ainoaaeaia (-$100000)"); OnPropUpdate(); LoadParks(); GivePlayerMoney(playerid,-100000); SBizzInfo[5][sbTill] += 100000; ExtortionSBiz(5, 100000); SBizzInfo[5][sbProducts]--; PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0); DestroyVehicle(sizeof(HouseInfo)+park+1); CreateVehicle(ParkInfo[park][parkVec], ParkCarSpawns[park][0], ParkCarSpawns[park][1], ParkCarSpawns[park][2], ParkCarSpawns[park][3], ParkInfo[park][parkVcol1], ParkInfo[park][parkVcol2], -1); } else { SendClientMessage(playerid, COLOR_GRAD2, " Au ia ii?aoa iicaieeou naaa yoi ($100000)"); return 1; } } else { SendClientMessage(playerid, COLOR_GRAD2, " Au ia aeaaaaoa ia?eiaeie!"); return 1; } return 1; } */ //======================================================================================================== if(strcmp(cmd, "/parkhelp", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); SendClientMessage(playerid, COLOR_WHITE,"*** Ïîìîùü ïî ïàðêîâêàì. Èñïîëüçóéòå ñëåäóùèå êîìàíäó"); SendClientMessage(playerid, COLOR_GRAD3,"*** Ïàðêîâêà *** /buypark /sellpark /vpark /parkcolor"); SendClientMessage(playerid, COLOR_GRAD4,"*** Äðóãèå *** /cellphonehelp /help /renthelp /businesshelp /leaderhelp /fishhelp /cookhelp /irchelp"); } return 1; }[code] Где Исправьте Плиз!! + Дам Блеать 50рублей Дам)))) Клянусь!
---
Сообщение отредактировал iLovePivo - Воскресенье, 15.05.2011, 23:49 |
| |
|
|
| Shurik | Дата: Понедельник, 16.05.2011, 01:32 | Сообщение # 3276 |
|
Новенький
Группа:
Пользователи
Сообщений: 28
Награды: 2
Город: Пружаны
Репутация: 28
Замечания: 0%
Статус: 
| Quote (iLovePivo) Где Исправьте Плиз!! + Дам Блеать 50рублей Дам)))) Клянусь! Попробуй [cut][code]//====================================Nenoaia ia?eiaie aey ne?aa?a=)============================== //-----------------------------------[park system]----------------------------------------- if(strcmp(cmd, "/buypark", true) == 0) { new plname[256], str[256], s2[256]; GetPlayerName(playerid, plname, 256); for(new i = 0; i < 10; i++) { if(!strcmp(Parking[i][Owner], plname)) { SendClientMessage(playerid,COLOR_YELLOW, " O aan anou iaoeia!!! "); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); return 1; } } for(new u = 0; u < 10; u++) { if(GetPlayerVehicleID(playerid) == Parking[u][Vehicleid] && strcmp(Parking[u][Owner], " The state ")) { GivePlayerMoneyNoCheat(playerid, -10000); GetPlayerName(playerid,Parking[u][Owner], MAX_PLAYER_NAME); format(str, 256, "%s,%f,%f,%f,%f,%d,%d,%d",Parking[u][Owner],StandartPark[u][spawnx], StandartPark[u][spawny], StandartPark[u][spawnz], StandartPark[u][spawna],Parking[u][vehcolor1],Parking[u][vehcolor2],Parking[u][modeli]); valstr(s2, u); dini_Set("parking.ini", s2, str); //Parking[u][Vehicleid] = CreateVehicle(Parking[u][modeli],Parking[u][spawnx],Parking[u][spawny],Parking[u][spawnz], Parking[u][spawna], Parking[u][vehcolor1], Parking[u][vehcolor2], 60000); SendClientMessage(playerid,COLOR_YELLOW, " Iica?aaeyai, au eoieee nianoaaiio? iaoeio! "); TogglePlayerControllable(playerid, 1); return 1; } } return 1; } //======================================== if (strcmp(cmd, "/parkcolor", true) == 0) { new pname[MAX_PLAYER_NAME], s2[256], str[256]; { new tmp[256]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) {SendClientMessage(playerid,COLOR_YELLOW, " Eniieucoeoa /parkcolor [color1] [color2] ");return 1;} { new color1 = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) {SendClientMessage(playerid,COLOR_YELLOW, " Eniieucoeoa /parkcolor [color1] [color2] ");return 1;} { new color2 = strval(tmp); if(color1 < 0 || color1 > 150 ||color2 < 0 || color2 > 150) {SendClientMessage(playerid,COLOR_YELLOW, " Oaaoa ia ie?a 0 e ia auoa 150!!! ");return 1;} for(new u = 0; u < 10; u++) { GetPlayerName(playerid,pname,MAX_PLAYER_NAME); if(strcmp(pname, Parking[u][Owner]) == 0) { Parking[u][vehcolor1] = color1; Parking[u][vehcolor2] = color2; format(str, 256, "%s,%f,%f,%f,%f,%d,%d,%d",Parking[u][Owner],Parking[u][spawnx], Parking[u][spawny], Parking[u][spawnz], Parking[u][spawna],color1,color2,Parking[u][modeli]); valstr(s2, u); dini_Set("parking.ini", s2, str); DestroyVehicle(Parking[u][Vehicleid]); SendClientMessage(playerid,COLOR_YELLOW, " Iaoeia ioi?aaeaia ia iie?aneo! "); return 1; } } return 1; } } } } if (strcmp(cmd, "/vpark", true) == 0) { new pname[MAX_PLAYER_NAME], float:posx,float:posy,float:posz,float:posa, str[256], s2[256]; GetPlayerName(playerid,pname,MAX_PLAYER_NAME); for(new u = 0; u < 10; u++) { if(GetPlayerVehicleID(playerid) == Parking[u][Vehicleid] && !strcmp(pname, Parking[u][Owner])) { GetVehiclePos(Parking[u][Vehicleid], posx, posy, posz); GetVehicleZAngle(Parking[u][Vehicleid], posa); DestroyVehicle(Parking[u][Vehicleid]); CreateVehicle(Parking[u][modeli], posx, posy, posz, posa, Parking[u][vehcolor1],Parking[u][vehcolor2], 60000); format(str, 256, "%s,%f,%f,%f,%f,%d,%d,%d",Parking[u][Owner],posx, posy, posz, posa,Parking[u][vehcolor1],Parking[u][vehcolor2],Parking[u][modeli]); valstr(s2, u); dini_Set("parking.ini", s2, str); SendClientMessage(playerid,COLOR_YELLOW, " Iaoeia i?eia?eiaaia! "); return 1; } } SendClientMessage(playerid,COLOR_YELLOW, " Au ia a naiae iaoeia eee o aan iao iaoeiu! "); return 1; } //======================================== //======================================================================== if(strcmp(cmd, "/sellpark", true) == 0) { new plname[MAX_PLAYER_NAME], str[256], s2[256]; for(new u = 0; u < 10; u++) { if(GetPlayerVehicleID(playerid) == Parking[u][Vehicleid] && strcmp(Parking[u][Owner], plname) == 0) { DestroyVehicle(Parking[u][Vehicleid]); format(Parking[u][Owner], MAX_PLAYER_NAME, " The state "); Parking[u][spawnx] = StandartPark[u][spawnx]; Parking[u][spawny] = StandartPark[u][spawny]; Parking[u][spawnz] = StandartPark[u][spawnz]; Parking[u][spawna] = StandartPark[u][spawna]; Parking[u][vehcolor1] = StandartPark[u][vehcolor1]; Parking[u][vehcolor2] = StandartPark[u][vehcolor2]; Parking[u][modeli] = StandartPark[u][modeli]; new str[256], s2[256]; format(str, 256, "%s,%f,%f,%f,%f,%d,%d,%d",Parking[u][Owner],StandartPark[u][spawnx], StandartPark[u][spawny], StandartPark[u][spawnz], StandartPark[u][spawna],Parking[u][vehcolor1],Parking[u][vehcolor2],Parking[u][modeli]); valstr(s2, u); dini_Set("parking.ini", s2, str); Parking[u][Vehicleid] = CreateVehicle(Parking[u][modeli],Parking[u][spawnx],Parking[u][spawny],Parking[u][spawnz], Parking[u][spawna], Parking[u][vehcolor1], Parking[u][vehcolor2], 60000); GivePlayerMoneyNoCheat(playerid, 5000); } } return 1; } //------------------------------------------------------------------------ if (strcmp(cmd, "/parkcarcolor", true) == 0) { if(IsPlayerConnected(playerid)) { new park = PlayerInfo[playerid][pParkkey]; GetPlayerName(playerid, playername, sizeof(playername)); if (park != 255 && strcmp(playername, ParkInfo[PlayerInfo[playerid][pParkkey]][parkOwner], true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD3,"($5000) Eniieucoeoa: /parkcarcolor [color 1 - 2] [color number]"); return 1; } new colornum = strval(tmp); if(colornum > 2 || colornum < 1) { SendClientMessage(playerid, COLOR_GRAD3,"Aaaaeoa oaao 1 eee 2"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD3,"($5000) Eniieucoeoa: /parkcarcolor [color 1 - 2] [color number]"); } new color = strval(tmp); if(color > 126) { SendClientMessage(playerid, COLOR_GRAD3,"Oaao aie?ai auou iaiuoa 126"); return 1; } if (GetPlayerMoney(playerid) < 5000) { SendClientMessage(playerid, COLOR_GRAD3," Au ia eiaaoa ia n?aoo ($5000)"); } if(colornum == 1) { ParkInfo[park][parkVcol1] = color; format(string, sizeof(string), "Ia?aue oaao onoaiiaeai ia: %d (-$5000)",color); SendClientMessage(playerid, COLOR_GRAD3,string); } else { ParkInfo[park][parkVcol2] = color; format(string, sizeof(string), "Aoi?ie oaao onoaiiaeai ia: %d (-$5000)",color); SendClientMessage(playerid, COLOR_GRAD3,string); } SendClientMessage(playerid, COLOR_GRAD6, "Iaoeia ia?ae?aoaia! Oaao aoaao onoaiiaeai a oa?aiee 24 ?ania"); GivePlayerMoney(playerid,-5000); SBizzInfo[5][sbTill] += 5000; ExtortionSBiz(5, 5000); PlayerPlaySound(giveplayerid, 1134, 0.0, 0.0, 0.0); OnPropUpdate(); } else { SendClientMessage(playerid, COLOR_GRAD2, " Au ia aeaaaaoa aiiii"); return 1; } } return 1; } if (strcmp(cmd, "/parkcarupgrade", true) == 0) { if(IsPlayerConnected(playerid)) { new park = PlayerInfo[playerid][pParkkey]; GetPlayerName(playerid, playername, sizeof(playername)); if (park != 255 && strcmp(playername, ParkInfo[PlayerInfo[playerid][pParkkey]][parkOwner], true) == 0) { new gunid[16]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { format(string, sizeof(string), " ENIIEUCOEOA: /parkcarupgrade [carname]"); SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); SendClientMessage(playerid, COLOR_WHITE,"*** Caiaia aaoi ia ia?eiaea noieo $100000 ***"); SendClientMessage(playerid, COLOR_GRAD2,string); SendClientMessage(playerid, COLOR_GRAD3, " Aaoi: blistacompact clover elegant emperor glendale greenwood"); SendClientMessage(playerid, COLOR_GRAD3, " Aaoi: huntley jester landstalker merit nebula sabre stratum"); SendClientMessage(playerid, COLOR_GRAD3, " Aaoi: sunrise tahoma uranus phoenix stretch"); SendClientMessage(playerid, COLOR_GRAD3, " VIP aaoi: remington elegy hotknife bandito sultan rancher"); SendClientMessage(playerid, COLOR_GRAD3, " VIP aaoi: buffalo"); SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); return 1; } if(SBizzInfo[5][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~iE?OC?A?O?iO ?A?ACO‹", 5000, 1); return 1; } strmid(gunid, tmp, 0, strlen(cmdtext), 255); if (GetPlayerMoney(playerid) > 100000) { if(strcmp(gunid, "stretch", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Stretch"); ParkInfo[park][parkVec] = 409; } else if(strcmp(gunid, "hotknife", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Hotknife"); ParkInfo[park][parkVec] = 434; } else if(strcmp(gunid, "bandito", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Bandito"); ParkInfo[park][parkVec] = 568; } else if(strcmp(gunid, "sultan", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Sultan"); ParkInfo[park][parkVec] = 560; } else if(strcmp(gunid, "elegy", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Elegy"); ParkInfo[park][parkVec] = 562; } else if(strcmp(gunid, "phoenix", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Phoenix"); ParkInfo[park][parkVec] = 603; } else if(strcmp(gunid, "blistacompact", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Blista Compact"); ParkInfo[park][parkVec] = 496; } else if(strcmp(gunid, "clover", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Clover"); ParkInfo[park][parkVec] = 542; } else if(strcmp(gunid, "elegant", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Elegant"); ParkInfo[park][parkVec] = 507; } else if(strcmp(gunid, "emperor", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo A Emperor"); ParkInfo[park][parkVec] = 585; } else if(strcmp(gunid, "glendale", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Glendale"); ParkInfo[park][parkVec] = 466; } else if(strcmp(gunid, "greenwood", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Greenwood"); ParkInfo[park][parkVec] = 492; } else if(strcmp(gunid, "huntley", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Huntley"); ParkInfo[park][parkVec] = 579; } else if(strcmp(gunid, "jester", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Jester"); ParkInfo[park][parkVec] = 559; } else if(strcmp(gunid, "landstalker", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Landstalker"); ParkInfo[park][parkVec] = 400; } else if(strcmp(gunid, "merit", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaeeia ia?eiaeo Merit"); ParkInfo[park][parkVec] = 551; } else if(strcmp(gunid, "nebula", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Nebula"); ParkInfo[park][parkVec] = 516; } else if(strcmp(gunid, "sabre", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Sabre"); ParkInfo[park][parkVec] = 475; } else if(strcmp(gunid, "stratum", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Stratum"); ParkInfo[park][parkVec] = 561; } else if(strcmp(gunid, "sunrise", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Sunrise"); ParkInfo[park][parkVec] = 550; } else if(strcmp(gunid, "tahoma", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Tahoma"); ParkInfo[park][parkVec] = 566; } else if(strcmp(gunid, "uranus", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Uranus"); ParkInfo[park][parkVec] = 558; } else if(strcmp(gunid, "remington", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "* Iaiiaeaiea aaoi: Au caeacaee ia ia?eiaeo Remington"); ParkInfo[park][parkVec] = 534; } else if(strcmp(gunid, "buffalo", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "* Iaiiaeaiea aaoi: Au caeacaee ia ia?eiaeo Remington"); ParkInfo[park][parkVec] = 402; } else if(strcmp(gunid, "rancher", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "* Iaiiaeaiea aaoi: Au caeacaee ia ia?eiaeo Remington"); ParkInfo[park][parkVec] = 489; } else { SendClientMessage(playerid, COLOR_GRAD6, " Iaecaanoiue aaoiiiaeeu o?aaoao aunieiai ?aiaa."); return 1; } SendClientMessage(playerid, COLOR_GRAD6, " Iiaay iaoeia ainoaaeaia (-$100000)"); OnPropUpdate(); LoadParks(); GivePlayerMoney(playerid,-100000); SBizzInfo[5][sbTill] += 100000; ExtortionSBiz(5, 100000); SBizzInfo[5][sbProducts]--; PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0); DestroyVehicle(sizeof(HouseInfo)+park+1); CreateVehicle(ParkInfo[park][parkVec], ParkCarSpawns[park][0], ParkCarSpawns[park][1], ParkCarSpawns[park][2], ParkCarSpawns[park][3], ParkInfo[park][parkVcol1], ParkInfo[park][parkVcol2], -1); } else { SendClientMessage(playerid, COLOR_GRAD2, " Au ia ii?aoa iicaieeou naaa yoi ($100000)"); return 1; } } else { SendClientMessage(playerid, COLOR_GRAD2, " Au ia aeaaaaoa ia?eiaeie!"); return 1; } return 1; } } //======================================================================================================== if(strcmp(cmd, "/parkhelp", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); SendClientMessage(playerid, COLOR_WHITE,"*** Iiiiuu ii ia?eiaeai. Eniieucoeoa neaaouea eiiaiao"); SendClientMessage(playerid, COLOR_GRAD3,"*** Ia?eiaea *** /buypark /sellpark /vpark /parkcolor"); SendClientMessage(playerid, COLOR_GRAD4,"*** A?oaea *** /cellphonehelp /help /renthelp /businesshelp /leaderhelp /fishhelp /cookhelp /irchelp"); } return 1; }[code][/cut] Добавлено (16.05.2011, 01:32) --------------------------------------------- Немного не то кинул. Вот, пробуй это: [cut][code]//====================================Nenoaia ia?eiaie aey ne?aa?a=)============================== //-----------------------------------[park system]----------------------------------------- if(strcmp(cmd, "/buypark", true) == 0) { new plname[256], str[256], s2[256]; GetPlayerName(playerid, plname, 256); for(new i = 0; i < 10; i++) { if(!strcmp(Parking[i][Owner], plname)) { SendClientMessage(playerid,COLOR_YELLOW, " O aan anou iaoeia!!! "); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); return 1; } } for(new u = 0; u < 10; u++) { if(GetPlayerVehicleID(playerid) == Parking[u][Vehicleid] && strcmp(Parking[u][Owner], " The state ")) { GivePlayerMoneyNoCheat(playerid, -10000); GetPlayerName(playerid,Parking[u][Owner], MAX_PLAYER_NAME); format(str, 256, "%s,%f,%f,%f,%f,%d,%d,%d",Parking[u][Owner],StandartPark[u][spawnx], StandartPark[u][spawny], StandartPark[u][spawnz], StandartPark[u][spawna],Parking[u][vehcolor1],Parking[u][vehcolor2],Parking[u][modeli]); valstr(s2, u); dini_Set("parking.ini", s2, str); //Parking[u][Vehicleid] = CreateVehicle(Parking[u][modeli],Parking[u][spawnx],Parking[u][spawny],Parking[u][spawnz], Parking[u][spawna], Parking[u][vehcolor1], Parking[u][vehcolor2], 60000); SendClientMessage(playerid,COLOR_YELLOW, " Iica?aaeyai, au eoieee nianoaaiio? iaoeio! "); TogglePlayerControllable(playerid, 1); return 1; } } return 1; } //======================================== if (strcmp(cmd, "/parkcolor", true) == 0) { new pname[MAX_PLAYER_NAME], s2[256], str[256]; { new tmp[256]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) {SendClientMessage(playerid,COLOR_YELLOW, " Eniieucoeoa /parkcolor [color1] [color2] ");return 1;} { new color1 = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) {SendClientMessage(playerid,COLOR_YELLOW, " Eniieucoeoa /parkcolor [color1] [color2] ");return 1;} { new color2 = strval(tmp); if(color1 < 0 || color1 > 150 ||color2 < 0 || color2 > 150) {SendClientMessage(playerid,COLOR_YELLOW, " Oaaoa ia ie?a 0 e ia auoa 150!!! ");return 1;} for(new u = 0; u < 10; u++) { GetPlayerName(playerid,pname,MAX_PLAYER_NAME); if(strcmp(pname, Parking[u][Owner]) == 0) { Parking[u][vehcolor1] = color1; Parking[u][vehcolor2] = color2; format(str, 256, "%s,%f,%f,%f,%f,%d,%d,%d",Parking[u][Owner],Parking[u][spawnx], Parking[u][spawny], Parking[u][spawnz], Parking[u][spawna],color1,color2,Parking[u][modeli]); valstr(s2, u); dini_Set("parking.ini", s2, str); DestroyVehicle(Parking[u][Vehicleid]); SendClientMessage(playerid,COLOR_YELLOW, " Iaoeia ioi?aaeaia ia iie?aneo! "); return 1; } } } } } return 1; } if (strcmp(cmd, "/vpark", true) == 0) { new pname[MAX_PLAYER_NAME], float:posx,float:posy,float:posz,float:posa, str[256], s2[256]; GetPlayerName(playerid,pname,MAX_PLAYER_NAME); for(new u = 0; u < 10; u++) { if(GetPlayerVehicleID(playerid) == Parking[u][Vehicleid] && !strcmp(pname, Parking[u][Owner])) { GetVehiclePos(Parking[u][Vehicleid], posx, posy, posz); GetVehicleZAngle(Parking[u][Vehicleid], posa); DestroyVehicle(Parking[u][Vehicleid]); CreateVehicle(Parking[u][modeli], posx, posy, posz, posa, Parking[u][vehcolor1],Parking[u][vehcolor2], 60000); format(str, 256, "%s,%f,%f,%f,%f,%d,%d,%d",Parking[u][Owner],posx, posy, posz, posa,Parking[u][vehcolor1],Parking[u][vehcolor2],Parking[u][modeli]); valstr(s2, u); dini_Set("parking.ini", s2, str); SendClientMessage(playerid,COLOR_YELLOW, " Iaoeia i?eia?eiaaia! "); return 1; } } SendClientMessage(playerid,COLOR_YELLOW, " Au ia a naiae iaoeia eee o aan iao iaoeiu! "); return 1; } //======================================== //======================================================================== if(strcmp(cmd, "/sellpark", true) == 0) { new plname[MAX_PLAYER_NAME], str[256], s2[256]; for(new u = 0; u < 10; u++) { if(GetPlayerVehicleID(playerid) == Parking[u][Vehicleid] && strcmp(Parking[u][Owner], plname) == 0) { DestroyVehicle(Parking[u][Vehicleid]); format(Parking[u][Owner], MAX_PLAYER_NAME, " The state "); Parking[u][spawnx] = StandartPark[u][spawnx]; Parking[u][spawny] = StandartPark[u][spawny]; Parking[u][spawnz] = StandartPark[u][spawnz]; Parking[u][spawna] = StandartPark[u][spawna]; Parking[u][vehcolor1] = StandartPark[u][vehcolor1]; Parking[u][vehcolor2] = StandartPark[u][vehcolor2]; Parking[u][modeli] = StandartPark[u][modeli]; new str[256], s2[256]; format(str, 256, "%s,%f,%f,%f,%f,%d,%d,%d",Parking[u][Owner],StandartPark[u][spawnx], StandartPark[u][spawny], StandartPark[u][spawnz], StandartPark[u][spawna],Parking[u][vehcolor1],Parking[u][vehcolor2],Parking[u][modeli]); valstr(s2, u); dini_Set("parking.ini", s2, str); Parking[u][Vehicleid] = CreateVehicle(Parking[u][modeli],Parking[u][spawnx],Parking[u][spawny],Parking[u][spawnz], Parking[u][spawna], Parking[u][vehcolor1], Parking[u][vehcolor2], 60000); GivePlayerMoneyNoCheat(playerid, 5000); } } return 1; } //------------------------------------------------------------------------ if (strcmp(cmd, "/parkcarcolor", true) == 0) { if(IsPlayerConnected(playerid)) { new park = PlayerInfo[playerid][pParkkey]; GetPlayerName(playerid, playername, sizeof(playername)); if (park != 255 && strcmp(playername, ParkInfo[PlayerInfo[playerid][pParkkey]][parkOwner], true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD3,"($5000) Eniieucoeoa: /parkcarcolor [color 1 - 2] [color number]"); return 1; } new colornum = strval(tmp); if(colornum > 2 || colornum < 1) { SendClientMessage(playerid, COLOR_GRAD3,"Aaaaeoa oaao 1 eee 2"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD3,"($5000) Eniieucoeoa: /parkcarcolor [color 1 - 2] [color number]"); } new color = strval(tmp); if(color > 126) { SendClientMessage(playerid, COLOR_GRAD3,"Oaao aie?ai auou iaiuoa 126"); return 1; } if (GetPlayerMoney(playerid) < 5000) { SendClientMessage(playerid, COLOR_GRAD3," Au ia eiaaoa ia n?aoo ($5000)"); } if(colornum == 1) { ParkInfo[park][parkVcol1] = color; format(string, sizeof(string), "Ia?aue oaao onoaiiaeai ia: %d (-$5000)",color); SendClientMessage(playerid, COLOR_GRAD3,string); } else { ParkInfo[park][parkVcol2] = color; format(string, sizeof(string), "Aoi?ie oaao onoaiiaeai ia: %d (-$5000)",color); SendClientMessage(playerid, COLOR_GRAD3,string); } SendClientMessage(playerid, COLOR_GRAD6, "Iaoeia ia?ae?aoaia! Oaao aoaao onoaiiaeai a oa?aiee 24 ?ania"); GivePlayerMoney(playerid,-5000); SBizzInfo[5][sbTill] += 5000; ExtortionSBiz(5, 5000); PlayerPlaySound(giveplayerid, 1134, 0.0, 0.0, 0.0); OnPropUpdate(); } else { SendClientMessage(playerid, COLOR_GRAD2, " Au ia aeaaaaoa aiiii"); return 1; } } return 1; } if (strcmp(cmd, "/parkcarupgrade", true) == 0) { if(IsPlayerConnected(playerid)) { new park = PlayerInfo[playerid][pParkkey]; GetPlayerName(playerid, playername, sizeof(playername)); if (park != 255 && strcmp(playername, ParkInfo[PlayerInfo[playerid][pParkkey]][parkOwner], true) == 0) { new gunid[16]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { format(string, sizeof(string), " ENIIEUCOEOA: /parkcarupgrade [carname]"); SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); SendClientMessage(playerid, COLOR_WHITE,"*** Caiaia aaoi ia ia?eiaea noieo $100000 ***"); SendClientMessage(playerid, COLOR_GRAD2,string); SendClientMessage(playerid, COLOR_GRAD3, " Aaoi: blistacompact clover elegant emperor glendale greenwood"); SendClientMessage(playerid, COLOR_GRAD3, " Aaoi: huntley jester landstalker merit nebula sabre stratum"); SendClientMessage(playerid, COLOR_GRAD3, " Aaoi: sunrise tahoma uranus phoenix stretch"); SendClientMessage(playerid, COLOR_GRAD3, " VIP aaoi: remington elegy hotknife bandito sultan rancher"); SendClientMessage(playerid, COLOR_GRAD3, " VIP aaoi: buffalo"); SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); return 1; } if(SBizzInfo[5][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~iE?OC?A?O?iO ?A?ACO‹", 5000, 1); return 1; } strmid(gunid, tmp, 0, strlen(cmdtext), 255); if (GetPlayerMoney(playerid) > 100000) { if(strcmp(gunid, "stretch", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Stretch"); ParkInfo[park][parkVec] = 409; } else if(strcmp(gunid, "hotknife", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Hotknife"); ParkInfo[park][parkVec] = 434; } else if(strcmp(gunid, "bandito", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Bandito"); ParkInfo[park][parkVec] = 568; } else if(strcmp(gunid, "sultan", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Sultan"); ParkInfo[park][parkVec] = 560; } else if(strcmp(gunid, "elegy", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Elegy"); ParkInfo[park][parkVec] = 562; } else if(strcmp(gunid, "phoenix", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Phoenix"); ParkInfo[park][parkVec] = 603; } else if(strcmp(gunid, "blistacompact", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Blista Compact"); ParkInfo[park][parkVec] = 496; } else if(strcmp(gunid, "clover", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Clover"); ParkInfo[park][parkVec] = 542; } else if(strcmp(gunid, "elegant", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Elegant"); ParkInfo[park][parkVec] = 507; } else if(strcmp(gunid, "emperor", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo A Emperor"); ParkInfo[park][parkVec] = 585; } else if(strcmp(gunid, "glendale", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Glendale"); ParkInfo[park][parkVec] = 466; } else if(strcmp(gunid, "greenwood", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Greenwood"); ParkInfo[park][parkVec] = 492; } else if(strcmp(gunid, "huntley", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Huntley"); ParkInfo[park][parkVec] = 579; } else if(strcmp(gunid, "jester", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Jester"); ParkInfo[park][parkVec] = 559; } else if(strcmp(gunid, "landstalker", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Landstalker"); ParkInfo[park][parkVec] = 400; } else if(strcmp(gunid, "merit", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaeeia ia?eiaeo Merit"); ParkInfo[park][parkVec] = 551; } else if(strcmp(gunid, "nebula", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Nebula"); ParkInfo[park][parkVec] = 516; } else if(strcmp(gunid, "sabre", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Sabre"); ParkInfo[park][parkVec] = 475; } else if(strcmp(gunid, "stratum", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Stratum"); ParkInfo[park][parkVec] = 561; } else if(strcmp(gunid, "sunrise", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Sunrise"); ParkInfo[park][parkVec] = 550; } else if(strcmp(gunid, "tahoma", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Tahoma"); ParkInfo[park][parkVec] = 566; } else if(strcmp(gunid, "uranus", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Uranus"); ParkInfo[park][parkVec] = 558; } else if(strcmp(gunid, "remington", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "* Iaiiaeaiea aaoi: Au caeacaee ia ia?eiaeo Remington"); ParkInfo[park][parkVec] = 534; } else if(strcmp(gunid, "buffalo", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "* Iaiiaeaiea aaoi: Au caeacaee ia ia?eiaeo Remington"); ParkInfo[park][parkVec] = 402; } else if(strcmp(gunid, "rancher", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "* Iaiiaeaiea aaoi: Au caeacaee ia ia?eiaeo Remington"); ParkInfo[park][parkVec] = 489; } else { SendClientMessage(playerid, COLOR_GRAD6, " Iaecaanoiue aaoiiiaeeu o?aaoao aunieiai ?aiaa."); return 1; } SendClientMessage(playerid, COLOR_GRAD6, " Iiaay iaoeia ainoaaeaia (-$100000)"); OnPropUpdate(); LoadParks(); GivePlayerMoney(playerid,-100000); SBizzInfo[5][sbTill] += 100000; ExtortionSBiz(5, 100000); SBizzInfo[5][sbProducts]--; PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0); DestroyVehicle(sizeof(HouseInfo)+park+1); CreateVehicle(ParkInfo[park][parkVec], ParkCarSpawns[park][0], ParkCarSpawns[park][1], ParkCarSpawns[park][2], ParkCarSpawns[park][3], ParkInfo[park][parkVcol1], ParkInfo[park][parkVcol2], -1); } else { SendClientMessage(playerid, COLOR_GRAD2, " Au ia ii?aoa iicaieeou naaa yoi ($100000)"); return 1; } } else { SendClientMessage(playerid, COLOR_GRAD2, " Au ia aeaaaaoa ia?eiaeie!"); return 1; } return 1; } } //======================================================================================================== if(strcmp(cmd, "/parkhelp", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); SendClientMessage(playerid, COLOR_WHITE,"*** Iiiiuu ii ia?eiaeai. Eniieucoeoa neaaouea eiiaiao"); SendClientMessage(playerid, COLOR_GRAD3,"*** Ia?eiaea *** /buypark /sellpark /vpark /parkcolor"); SendClientMessage(playerid, COLOR_GRAD4,"*** A?oaea *** /cellphonehelp /help /renthelp /businesshelp /leaderhelp /fishhelp /cookhelp /irchelp"); } return 1; }[code] [/cut]
|
| |
|
|
| Nemiroff23 | Дата: Понедельник, 16.05.2011, 11:07 | Сообщение # 3277 |
|
Освоившийся
Группа:
Продвинутые
Сообщений: 100
Награды: 3
Город: Ташкент наверно :D
Репутация: -3
Замечания: 40%
Статус: 
| Здравствуйте. у меня вопрос как сделать привязка автомобиля к игроку а нек дому, например купил дом потом поехал в автосалон купил тачку, продал дом а тачка исчезает и когда покупаешь другой дом появляется тачка которую купил, а то у меня привязан к дому.
Учусь скриптингу. Занимаюсь Мапингом. Продам домен + хост для сайта, оплачено до 25.04.2012. Online-Samp.Ru
Сообщение отредактировал Nemiroff23 - Понедельник, 16.05.2011, 11:07 |
| |
|
|
| uDenX | Дата: Понедельник, 16.05.2011, 11:18 | Сообщение # 3278 |
|
Группа:
Media-ProGroup
Сообщений: 1193
Награды: 23
Город: Салават
Репутация: 1301
Замечания: 0%
Статус: 
| Nemiroff23, редактируй авторынок
|
| |
|
|
| Nemiroff23 | Дата: Понедельник, 16.05.2011, 11:31 | Сообщение # 3279 |
|
Освоившийся
Группа:
Продвинутые
Сообщений: 100
Награды: 3
Город: Ташкент наверно :D
Репутация: -3
Замечания: 40%
Статус: 
| смысли как? у меня автосалон написанный с 0
Учусь скриптингу. Занимаюсь Мапингом. Продам домен + хост для сайта, оплачено до 25.04.2012. Online-Samp.Ru
|
| |
|
|
| Stap | Дата: Понедельник, 16.05.2011, 15:11 | Сообщение # 3280 |
|
Уважаемый человек
Группа:
I'm V.I.P.
Сообщений: 823
Награды: 13
Город: Нижний Тагил
Репутация: 573
Замечания: 80%
Статус: 
| Где можно посмотреть урок привязки предмета к игроку или авто,что-то вроде [FS]Сабвуфер,который есть на этом сайте. Добавлено (16.05.2011, 15:11) --------------------------------------------- [FS]Сабвуфер я просто привёл к примеру,потому что мне нужно объект также привязать к авто.
...карандаши разного цвета на вкус одинаковы....
Мои работы: [MAP]ПТО v.1.0[Законченa][Ссылка(Клик)] [MAP+FS]ПТО v.2.0(Заключительная)[55%]
|
| |
|
|
| iLovePivo | Дата: Понедельник, 16.05.2011, 16:08 | Сообщение # 3281 |
|
Уверенный в себе
Группа:
Пользователи
Сообщений: 251
Награды: 5
Город: Ростов На Дону
| Quote (Shurik) Где Исправьте Плиз!! + Дам Блеать 50рублей Дам)))) Клянусь! Попробуй [ Читать далее ][code]//====================================Nenoaia ia?eiaie aey ne?aa?a=)============================== //-----------------------------------[park system]----------------------------------------- if(strcmp(cmd, "/buypark", true) == 0) { new plname[256], str[256], s2[256]; GetPlayerName(playerid, plname, 256); for(new i = 0; i < 10; i++) { if(!strcmp(Parking[i][Owner], plname)) { SendClientMessage(playerid,COLOR_YELLOW, " O aan anou iaoeia!!! "); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); return 1; } } for(new u = 0; u < 10; u++) { if(GetPlayerVehicleID(playerid) == Parking[u][Vehicleid] && strcmp(Parking[u][Owner], " The state ")) { GivePlayerMoneyNoCheat(playerid, -10000); GetPlayerName(playerid,Parking[u][Owner], MAX_PLAYER_NAME); format(str, 256, "%s,%f,%f,%f,%f,%d,%d,%d",Parking[u][Owner],StandartPark[u][spawnx], StandartPark[u][spawny], StandartPark[u][spawnz], StandartPark[u][spawna],Parking[u][vehcolor1],Parking[u][vehcolor2],Parking[u][modeli]); valstr(s2, u); dini_Set("parking.ini", s2, str); //Parking[u][Vehicleid] = CreateVehicle(Parking[u][modeli],Parking[u][spawnx],Parking[u][spawny],Parking[u][spawnz], Parking[u][spawna], Parking[u][vehcolor1], Parking[u][vehcolor2], 60000); SendClientMessage(playerid,COLOR_YELLOW, " Iica?aaeyai, au eoieee nianoaaiio? iaoeio! "); TogglePlayerControllable(playerid, 1); return 1; } } return 1; } //======================================== if (strcmp(cmd, "/parkcolor", true) == 0) { new pname[MAX_PLAYER_NAME], s2[256], str[256]; { new tmp[256]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) {SendClientMessage(playerid,COLOR_YELLOW, " Eniieucoeoa /parkcolor [color1] [color2] ");return 1;} { new color1 = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) {SendClientMessage(playerid,COLOR_YELLOW, " Eniieucoeoa /parkcolor [color1] [color2] ");return 1;} { new color2 = strval(tmp); if(color1 < 0 || color1 > 150 ||color2 < 0 || color2 > 150) {SendClientMessage(playerid,COLOR_YELLOW, " Oaaoa ia ie?a 0 e ia auoa 150!!! ");return 1;} for(new u = 0; u < 10; u++) { GetPlayerName(playerid,pname,MAX_PLAYER_NAME); if(strcmp(pname, Parking[u][Owner]) == 0) { Parking[u][vehcolor1] = color1; Parking[u][vehcolor2] = color2; format(str, 256, "%s,%f,%f,%f,%f,%d,%d,%d",Parking[u][Owner],Parking[u][spawnx], Parking[u][spawny], Parking[u][spawnz], Parking[u][spawna],color1,color2,Parking[u][modeli]); valstr(s2, u); dini_Set("parking.ini", s2, str); DestroyVehicle(Parking[u][Vehicleid]); SendClientMessage(playerid,COLOR_YELLOW, " Iaoeia ioi?aaeaia ia iie?aneo! "); return 1; } } return 1; } } } } if (strcmp(cmd, "/vpark", true) == 0) { new pname[MAX_PLAYER_NAME], float:posx,float:posy,float:posz,float:posa, str[256], s2[256]; GetPlayerName(playerid,pname,MAX_PLAYER_NAME); for(new u = 0; u < 10; u++) { if(GetPlayerVehicleID(playerid) == Parking[u][Vehicleid] && !strcmp(pname, Parking[u][Owner])) { GetVehiclePos(Parking[u][Vehicleid], posx, posy, posz); GetVehicleZAngle(Parking[u][Vehicleid], posa); DestroyVehicle(Parking[u][Vehicleid]); CreateVehicle(Parking[u][modeli], posx, posy, posz, posa, Parking[u][vehcolor1],Parking[u][vehcolor2], 60000); format(str, 256, "%s,%f,%f,%f,%f,%d,%d,%d",Parking[u][Owner],posx, posy, posz, posa,Parking[u][vehcolor1],Parking[u][vehcolor2],Parking[u][modeli]); valstr(s2, u); dini_Set("parking.ini", s2, str); SendClientMessage(playerid,COLOR_YELLOW, " Iaoeia i?eia?eiaaia! "); return 1; } } SendClientMessage(playerid,COLOR_YELLOW, " Au ia a naiae iaoeia eee o aan iao iaoeiu! "); return 1; } //======================================== //======================================================================== if(strcmp(cmd, "/sellpark", true) == 0) { new plname[MAX_PLAYER_NAME], str[256], s2[256]; for(new u = 0; u < 10; u++) { if(GetPlayerVehicleID(playerid) == Parking[u][Vehicleid] && strcmp(Parking[u][Owner], plname) == 0) { DestroyVehicle(Parking[u][Vehicleid]); format(Parking[u][Owner], MAX_PLAYER_NAME, " The state "); Parking[u][spawnx] = StandartPark[u][spawnx]; Parking[u][spawny] = StandartPark[u][spawny]; Parking[u][spawnz] = StandartPark[u][spawnz]; Parking[u][spawna] = StandartPark[u][spawna]; Parking[u][vehcolor1] = StandartPark[u][vehcolor1]; Parking[u][vehcolor2] = StandartPark[u][vehcolor2]; Parking[u][modeli] = StandartPark[u][modeli]; new str[256], s2[256]; format(str, 256, "%s,%f,%f,%f,%f,%d,%d,%d",Parking[u][Owner],StandartPark[u][spawnx], StandartPark[u][spawny], StandartPark[u][spawnz], StandartPark[u][spawna],Parking[u][vehcolor1],Parking[u][vehcolor2],Parking[u][modeli]); valstr(s2, u); dini_Set("parking.ini", s2, str); Parking[u][Vehicleid] = CreateVehicle(Parking[u][modeli],Parking[u][spawnx],Parking[u][spawny],Parking[u][spawnz], Parking[u][spawna], Parking[u][vehcolor1], Parking[u][vehcolor2], 60000); GivePlayerMoneyNoCheat(playerid, 5000); } } return 1; } //------------------------------------------------------------------------ if (strcmp(cmd, "/parkcarcolor", true) == 0) { if(IsPlayerConnected(playerid)) { new park = PlayerInfo[playerid][pParkkey]; GetPlayerName(playerid, playername, sizeof(playername)); if (park != 255 && strcmp(playername, ParkInfo[PlayerInfo[playerid][pParkkey]][parkOwner], true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD3,"($5000) Eniieucoeoa: /parkcarcolor [color 1 - 2] [color number]"); return 1; } new colornum = strval(tmp); if(colornum > 2 || colornum < 1) { SendClientMessage(playerid, COLOR_GRAD3,"Aaaaeoa oaao 1 eee 2"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD3,"($5000) Eniieucoeoa: /parkcarcolor [color 1 - 2] [color number]"); } new color = strval(tmp); if(color > 126) { SendClientMessage(playerid, COLOR_GRAD3,"Oaao aie?ai auou iaiuoa 126"); return 1; } if (GetPlayerMoney(playerid) < 5000) { SendClientMessage(playerid, COLOR_GRAD3," Au ia eiaaoa ia n?aoo ($5000)"); } if(colornum == 1) { ParkInfo[park][parkVcol1] = color; format(string, sizeof(string), "Ia?aue oaao onoaiiaeai ia: %d (-$5000)",color); SendClientMessage(playerid, COLOR_GRAD3,string); } else { ParkInfo[park][parkVcol2] = color; format(string, sizeof(string), "Aoi?ie oaao onoaiiaeai ia: %d (-$5000)",color); SendClientMessage(playerid, COLOR_GRAD3,string); } SendClientMessage(playerid, COLOR_GRAD6, "Iaoeia ia?ae?aoaia! Oaao aoaao onoaiiaeai a oa?aiee 24 ?ania"); GivePlayerMoney(playerid,-5000); SBizzInfo[5][sbTill] += 5000; ExtortionSBiz(5, 5000); PlayerPlaySound(giveplayerid, 1134, 0.0, 0.0, 0.0); OnPropUpdate(); } else { SendClientMessage(playerid, COLOR_GRAD2, " Au ia aeaaaaoa aiiii"); return 1; } } return 1; } if (strcmp(cmd, "/parkcarupgrade", true) == 0) { if(IsPlayerConnected(playerid)) { new park = PlayerInfo[playerid][pParkkey]; GetPlayerName(playerid, playername, sizeof(playername)); if (park != 255 && strcmp(playername, ParkInfo[PlayerInfo[playerid][pParkkey]][parkOwner], true) == 0) { new gunid[16]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { format(string, sizeof(string), " ENIIEUCOEOA: /parkcarupgrade [carname]"); SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); SendClientMessage(playerid, COLOR_WHITE,"*** Caiaia aaoi ia ia?eiaea noieo $100000 ***"); SendClientMessage(playerid, COLOR_GRAD2,string); SendClientMessage(playerid, COLOR_GRAD3, " Aaoi: blistacompact clover elegant emperor glendale greenwood"); SendClientMessage(playerid, COLOR_GRAD3, " Aaoi: huntley jester landstalker merit nebula sabre stratum"); SendClientMessage(playerid, COLOR_GRAD3, " Aaoi: sunrise tahoma uranus phoenix stretch"); SendClientMessage(playerid, COLOR_GRAD3, " VIP aaoi: remington elegy hotknife bandito sultan rancher"); SendClientMessage(playerid, COLOR_GRAD3, " VIP aaoi: buffalo"); SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); return 1; } if(SBizzInfo[5][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~iE?OC?A?O?iO ?A?ACO‹", 5000, 1); return 1; } strmid(gunid, tmp, 0, strlen(cmdtext), 255); if (GetPlayerMoney(playerid) > 100000) { if(strcmp(gunid, "stretch", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Stretch"); ParkInfo[park][parkVec] = 409; } else if(strcmp(gunid, "hotknife", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Hotknife"); ParkInfo[park][parkVec] = 434; } else if(strcmp(gunid, "bandito", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Bandito"); ParkInfo[park][parkVec] = 568; } else if(strcmp(gunid, "sultan", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Sultan"); ParkInfo[park][parkVec] = 560; } else if(strcmp(gunid, "elegy", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Elegy"); ParkInfo[park][parkVec] = 562; } else if(strcmp(gunid, "phoenix", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Phoenix"); ParkInfo[park][parkVec] = 603; } else if(strcmp(gunid, "blistacompact", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Blista Compact"); ParkInfo[park][parkVec] = 496; } else if(strcmp(gunid, "clover", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Clover"); ParkInfo[park][parkVec] = 542; } else if(strcmp(gunid, "elegant", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Elegant"); ParkInfo[park][parkVec] = 507; } else if(strcmp(gunid, "emperor", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo A Emperor"); ParkInfo[park][parkVec] = 585; } else if(strcmp(gunid, "glendale", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Glendale"); ParkInfo[park][parkVec] = 466; } else if(strcmp(gunid, "greenwood", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Greenwood"); ParkInfo[park][parkVec] = 492; } else if(strcmp(gunid, "huntley", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Huntley"); ParkInfo[park][parkVec] = 579; } else if(strcmp(gunid, "jester", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Jester"); ParkInfo[park][parkVec] = 559; } else if(strcmp(gunid, "landstalker", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Landstalker"); ParkInfo[park][parkVec] = 400; } else if(strcmp(gunid, "merit", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaeeia ia?eiaeo Merit"); ParkInfo[park][parkVec] = 551; } else if(strcmp(gunid, "nebula", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Nebula"); ParkInfo[park][parkVec] = 516; } else if(strcmp(gunid, "sabre", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Sabre"); ParkInfo[park][parkVec] = 475; } else if(strcmp(gunid, "stratum", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Stratum"); ParkInfo[park][parkVec] = 561; } else if(strcmp(gunid, "sunrise", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Sunrise"); ParkInfo[park][parkVec] = 550; } else if(strcmp(gunid, "tahoma", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Tahoma"); ParkInfo[park][parkVec] = 566; } else if(strcmp(gunid, "uranus", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Au caeacaee ia ia?eiaeo Uranus"); ParkInfo[park][parkVec] = 558; } else if(strcmp(gunid, "remington", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "* Iaiiaeaiea aaoi: Au caeacaee ia ia?eiaeo Remington"); ParkInfo[park][parkVec] = 534; } else if(strcmp(gunid, "buffalo", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "* Iaiiaeaiea aaoi: Au caeacaee ia ia?eiaeo Remington"); ParkInfo[park][parkVec] = 402; } else if(strcmp(gunid, "rancher", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " O aan ia VIP aeeaoio !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "* Iaiiaeaiea aaoi: Au caeacaee ia ia?eiaeo Remington"); ParkInfo[park][parkVec] = 489; } else { SendClientMessage(playerid, COLOR_GRAD6, " Iaecaanoiue aaoiiiaeeu o?aaoao aunieiai ?aiaa."); return 1; } SendClientMessage(playerid, COLOR_GRAD6, " Iiaay iaoeia ainoaaeaia (-$100000)"); OnPropUpdate(); LoadParks(); GivePlayerMoney(playerid,-100000); SBizzInfo[5][sbTill] += 100000; ExtortionSBiz(5, 100000); SBizzInfo[5][sbProducts]--; PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0); DestroyVehicle(sizeof(HouseInfo)+park+1); CreateVehicle(ParkInfo[park][parkVec], ParkCarSpawns[park][0], ParkCarSpawns[park][1], ParkCarSpawns[park][2], ParkCarSpawns[park][3], ParkInfo[park][parkVcol1], ParkInfo[park][parkVcol2], -1); } else { SendClientMessage(playerid, COLOR_GRAD2, " Au ia ii?aoa iicaieeou naaa yoi ($100000)"); return 1; } } else { SendClientMessage(playerid, COLOR_GRAD2, " Au ia aeaaaaoa ia?eiaeie!"); return 1; } return 1; } } //======================================================================================================== if(strcmp(cmd, "/parkhelp", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); SendClientMessage(playerid, COLOR_WHITE,"*** Iiiiuu ii ia?eiaeai. Eniieucoeoa neaaouea eiiaiao"); SendClientMessage(playerid, COLOR_GRAD3,"*** Ia?eiaea *** /buypark /sellpark /vpark /parkcolor"); SendClientMessage(playerid, COLOR_GRAD4,"*** A?oaea *** /cellphonehelp /help /renthelp /businesshelp /leaderhelp /fishhelp /cookhelp /irchelp"); } return 1; }[code]Добавлено (16.05.2011, 01:32)---------------------------------------------Немного не то кинул. Вот, пробуй это: [ Читать далее ] Отдуши Брат!! Вот ишё че за ошибки? Quote C:\Users\Bunny\Desktop\Íîâàÿ ïàïêà (11)\pawno\corp.pwn(2726) : warning 204: symbol is assigned a value that is never used: "leader" C:\Users\Bunny\Desktop\Íîâàÿ ïàïêà (11)\pawno\corp.pwn(15666) : error 017: undefined symbol "Parking" C:\Users\Bunny\Desktop\Íîâàÿ ïàïêà (11)\pawno\corp.pwn(15666) : warning 215: expression has no effect C:\Users\Bunny\Desktop\Íîâàÿ ïàïêà (11)\pawno\corp.pwn(15666) : error 001: expected token: ";", but found "]" C:\Users\Bunny\Desktop\Íîâàÿ ïàïêà (11)\pawno\corp.pwn(15666) : error 029: invalid expression, assumed zero C:\Users\Bunny\Desktop\Íîâàÿ ïàïêà (11)\pawno\corp.pwn(15666) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
---
|
| |
|
|
| VlaDyslaV | Дата: Вторник, 17.05.2011, 14:54 | Сообщение # 3282 |
|
Освоившийся
Группа:
Пользователи
Сообщений: 76
Награды: 0
Город: Тараща
Репутация: 0
Замечания: 0%
Статус: 
| В кратце: Когда человек находится в доме, или каком то интерьере и его ТП на улицу люой кмандой даже /gethere то у него всё серое, и так же если он на улице и его в дом ТП, то у него будет все серое или он не будет видеть других игроков находящихся рядом с ним!!! Как это исправить, заранее благодарен?!!
|
| |
|
|
| Jumpman23 | Дата: Вторник, 17.05.2011, 15:33 | Сообщение # 3283 |
|
Группа:
I'm V.I.P.
Сообщений: 1359
Награды: 23
Город: Kingston, Rastapolis
Репутация: 504
Замечания: 100%
Статус: 
| Quote (VlaDyslaV) Когда человек находится в доме, или каком то интерьере и его ТП на улицу люой кмандой даже /gethere то у него всё серое, и так же если он на улице и его в дом ТП, то у него будет все серое или он не будет видеть других игроков находящихся рядом с ним!!! Как это исправить, заранее благодарен?!! никак, только сменить интерьер
Тсссс, тссс, отключите снисходительный тон. Помните: вас уже лишали права слова на этом форуме. Прошу прощения у всех кого я заебал или оскорбил (Кроме икварпа и чеза - вы ибланы). Великс ты красава.
|
| |
|
|
| Spektr109 | Дата: Вторник, 17.05.2011, 16:29 | Сообщение # 3284 |
|
Новенький
Группа:
Пользователи
Сообщений: 9
Награды: 0
Город: Магнитогорск
Репутация: -2
Замечания: 0%
Статус: 
| У меня такой вопрос, как сделать так, чтобы игрока кикало с сервера после ввода неправильного пароля при входе 3 раза? ( new.pwn ) P.S. Желательно чтобы это отображалось в диалоге
|
| |
|
|
| SLICK | Дата: Пятница, 20.05.2011, 21:56 | Сообщение # 3285 |
|
Местный
Группа:
I'm V.I.P.
Сообщений: 603
Награды: 9
Город: Unknown
Репутация: 388
Замечания: 0%
Статус: 
| Quote (Spektr109) У меня такой вопрос, как сделать так, чтобы игрока кикало с сервера после ввода неправильного пароля при входе 3 раза? ( new.pwn ) P.S. Желательно чтобы это отображалось в диалоге В проверке на правильность введенного пароля используй переменную для подсчета количества ввода неправильного пароля и потом кикай если переменная равна - 3. Добавлено (20.05.2011, 21:56) ---------------------------------------------
Quote (VlaDyslaV) В кратце: Когда человек находится в доме, или каком то интерьере и его ТП на улицу люой кмандой даже /gethere то у него всё серое, и так же если он на улице и его в дом ТП, то у него будет все серое или он не будет видеть других игроков находящихся рядом с ним!!! Как это исправить, заранее благодарен?!! Узнать интерьер куда собираемся телепортировать игрока, с помощью функции GetPlayerInterior и затем установить id интерьера тому игроку которого телепортировали.
My works: [GM] RTDM Advertising system Fuel System Artefacts Search (Динамическая сис-ма артефактов)
|
| |
|
|
|
 |
|
 | |
| |
|