 |
|
 |
|
|
|
Последние Файлы GTA 4 |
Последние Файлы GTA-MP |
Реклама |
|
|
|
|
|
Задать вопрос по SAMP (База знаний)
| |
| Axelerator | Дата: Пятница, 11.11.2011, 14:41 | Сообщение # 5881 |
|
Уверенный в себе
Группа:
I'm V.I.P.
Сообщений: 237
Награды: 2
Город: Омск
Репутация: 159
Замечания: 40%
Статус: 
| NeZ_pwn, В SA-MP для написания скриптов/игровых режимов используется язык PAWN. Уроков по этому языку в сети хватает, в т.ч есть и Wiki в которой можно найти многие функции SA-MP, а также приобрести кое-какие знания по скриптингу (примеры есть).
Сообщение отредактировал Axelerator - Пятница, 11.11.2011, 14:42 |
| |
|
|
| gotols | Дата: Пятница, 11.11.2011, 15:25 | Сообщение # 5882 |
|
Новенький
Группа:
Пользователи
Сообщений: 27
Награды: 0
Город: Казань
Репутация: 0
Замечания: 0%
Статус: 
| Люди,как сделать чтобы хитманы не отображались в киллстате?
|
| |
|
|
| FireLine | Дата: Пятница, 11.11.2011, 15:58 | Сообщение # 5883 |
|
Уверенный в себе
Группа:
Пользователи
Сообщений: 171
Награды: 3
Город: UKR
Репутация: 76
Замечания: 60%
Статус: 
| gotols, код скинь!
FireLine>>Aler
|
| |
|
|
| gotols | Дата: Пятница, 11.11.2011, 16:11 | Сообщение # 5884 |
|
Новенький
Группа:
Пользователи
Сообщений: 27
Награды: 0
Город: Казань
Репутация: 0
Замечания: 0%
Статус: 
| код OnPlayerDeath???
|
| |
|
|
| Dreven | Дата: Пятница, 11.11.2011, 16:37 | Сообщение # 5885 |
|
Гуру
Группа:
Продвинутые
Сообщений: 1096
Награды: 205
Город: od.ua
Репутация: 1099
Замечания: 0%
Статус: 
| Килллога дай код, мб помогу чемто
www.samp-rpg.com
|
| |
|
|
| gotols | Дата: Пятница, 11.11.2011, 16:43 | Сообщение # 5886 |
|
Новенький
Группа:
Пользователи
Сообщений: 27
Награды: 0
Город: Казань
Репутация: 0
Замечания: 0%
Статус: 
| Code public OnPlayerDeath(playerid, killerid, reason) { GunCheckTime[playerid] = 5; ResetPlayerWeapons(playerid); new name[MAX_PLAYER_NAME]; new string[256]; StopPlayerHoldingObject(playerid); SetPVarInt(playerid, "Gun", 0); SetPVarInt(playerid, "Ammo", 0); new Float:px,Float:py,Float:pz; MedicBill[playerid] = 1; gPlayerSpawned[playerid] = 0; GetPlayerName(playerid, name, sizeof(name)); PlayerInfo[playerid][pLocal] = 255; GetPlayerPos(playerid, px, py, pz); if( killerid != INVALID_PLAYER_ID) { SendDeathMessage(killerid, playerid, reason); } if(killerid != 255) { new kickname[MAX_PLAYER_NAME]; if(GetPlayerState(killerid) == 2) { if(ProxDetectorS(20, killerid, playerid)) { if(!IsPlayerInAnyVehicle(playerid)) { GetPlayerName(killerid, kickname, sizeof(kickname)); SendClientMessage(killerid, COLOR_YELLOW, "SampLike: Âû íàðóøèëè ïðàâèëî ñåðâåðà: óáèéñòâî èãðîêà èç òðàíñïîðòà."); format(string, 256, "SampLike: %s [%d] íàðóøèë ïðàâèëî ñåðâåðà: óáèéñòâî èãðîêà èç òðàíñïîðòà.",kickname,killerid); ABroadCast(COLOR_LIGHTRED,string,1); return 1; } } } } if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11) { DisablePlayerCheckpoint(playerid); gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE; } new caller = Mobile[playerid]; if(caller != 255) { if(caller < 255) { SendClientMessage(caller, COLOR_GRAD2, "Ëèíèÿ ïóñòà...."); CellTime[caller] = 0; CellTime[playerid] = 0; SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE); SetPlayerSpecialAction(caller,SPECIAL_ACTION_STOPUSECELLPHONE); Mobile[caller] = 255; } Mobile[playerid] = 255; CellTime[playerid] = 0; } ClearCrime(playerid); if(PlayerPaintballing[playerid] != 0) { PlayerPaintballKills[killerid] ++; if(PlayerPaintballKills[killerid] > PaintballWinnerKills) { new killer[MAX_PLAYER_NAME]; PaintballWinner = killerid; PaintballWinnerKills = PlayerPaintballKills[killerid]; GetPlayerName(killerid, killer, sizeof(killer)); for(new i = 0; i < GetMaxPlayers(); i++) { if(IsPlayerConnected(i)) { if(PlayerPaintballing[i] != 0) { format(string, sizeof(string), "%s âìåñòå ñ ãëàâîé %d óáèòû.",killer,PaintballWinnerKills); SendClientMessage(i, COLOR_WHITE, string); } } } } return 1; } if(PlayerInfo[playerid][pHeadValue] > 0) { if(IsPlayerConnected(killerid)) { if(PlayerInfo[killerid][pLeader] == 8 || PlayerInfo[killerid][pMember] == 8) { if(GoChase[killerid] == playerid) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); PlayerInfo[killerid][pMoney] += PlayerInfo[playerid][pHeadValue]; format(string,128,"Õèòìàí %s âûïîëíèë êîíòðàêò íà %s è ïîëó÷èë âîçíàãðàæäåíèå %d$.",killer,name,PlayerInfo[playerid][pHeadValue]); SendFamilyMessage(8, COLOR_YELLOW, string); SendClientMessage(playerid,COLOR_LIGHTRED, "Âû óáèòû ïî çàêàçó!"); PlayerInfo[playerid][pHeadValue] = 0; GotHit[playerid] = 0; GetChased[playerid] = 999; GoChase[killerid] = 999; } } } } killerid = INVALID_PLAYER_ID; SetPlayerToTeamColor(playerid); ServerResetPlayerWeapons(playerid); return 1; }
|
| |
|
|
| DJ_Kuzya | Дата: Пятница, 11.11.2011, 17:54 | Сообщение # 5887 |
|
Новенький
Группа:
Пользователи
Сообщений: 4
Награды: 0
Город: Киев
Репутация: 0
Замечания: 0%
Статус: 
| У меня такой вопрос как установить допы на гта4), особенно машины)
|
| |
|
|
| Axelerator | Дата: Пятница, 11.11.2011, 18:01 | Сообщение # 5888 |
|
Уверенный в себе
Группа:
I'm V.I.P.
Сообщений: 237
Награды: 2
Город: Омск
Репутация: 159
Замечания: 40%
Статус: 
| Quote (DJ_Kuzya) У меня такой вопрос как установить допы на гта4), особенно машины) Тебе сюда
|
| |
|
|
| Dmitry_Podtiopa | Дата: Пятница, 11.11.2011, 18:53 | Сообщение # 5889 |
|
Новенький
Группа:
Пользователи
Сообщений: 5
Награды: 0
Город: Fastov
Репутация: 0
Замечания: 0%
Статус: 
| смотрите есть мод, личный в нём такая фигня регистрация-всё норм выходит заходит в игру но потом иногда заходишь а у тебя опять регистрация, после рр всё норм что делать? и так много рас и у всех... дома кары не слетают а именно ключи и тд...
[cut noguest=kod][: ] Код public OnPlayerLogin(playerid,password[]) { new tmp2[256]; new string2[64]; new pass[256]; new playername2[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername2, sizeof(playername2)); format(string2, sizeof(string2), "nick/%s.ini", playername2); new File = iniOpen(string2); if(File <0) { ABroadCast(COLOR_LIGHTRED,playername2,1); } if(!File) { iniGet(File,"Key",pass); iniGetInt(File,"Level",PlayerInfo[playerid][pLevel]); iniGetInt(File,"AdminLevel",PlayerInfo[playerid][pAdmin]); iniGetInt(File,"HelperLevel",PlayerInfo[playerid][pHelper]); iniGetInt(File,"DonateRank",PlayerInfo[playerid][pDonateRank]); iniGetInt(File,"UpgradePoints",PlayerInfo[playerid][gPupgrade]); iniGetInt(File,"ConnectTime",PlayerInfo[playerid][pConnectTime]); iniGetInt(File,"Registered",PlayerInfo[playerid][pReg]); iniGetInt(File,"Sex",PlayerInfo[playerid][pSex]); iniGetInt(File,"Age",PlayerInfo[playerid][pAge]); iniGetInt(File,"Origin",PlayerInfo[playerid][pOrigin]); iniGetInt(File,"CK",PlayerInfo[playerid][pCK]); iniGetInt(File,"Muted",PlayerInfo[playerid][pMuted]); iniGetInt(File,"Respect",PlayerInfo[playerid][pExp]); iniGetInt(File,"Money",PlayerInfo[playerid][pCash]); iniGetInt(File,"Bank",PlayerInfo[playerid][pAccount]); iniGetInt(File,"Crimes",PlayerInfo[playerid][pCrimes]); iniGetInt(File,"Kills",PlayerInfo[playerid][pKills]); iniGetInt(File,"Deaths",PlayerInfo[playerid][pDeaths]); iniGetInt(File,"Arrested",PlayerInfo[playerid][pArrested]); iniGetInt(File,"WantedDeaths",PlayerInfo[playerid][pWantedDeaths]); iniGetInt(File,"Phonebook",PlayerInfo[playerid][pPhoneBook]); iniGetInt(File,"Kpk",PlayerInfo[playerid][pKpk]); iniGetInt(File,"LottoNr",PlayerInfo[playerid][pLottoNr]); iniGetInt(File,"Fishes",PlayerInfo[playerid][pFishes]); iniGetInt(File,"BiggestFish",PlayerInfo[playerid][pBiggestFish]); iniGetInt(File,"Job",PlayerInfo[playerid][pJob]); iniGetInt(File,"Paycheck",PlayerInfo[playerid][pPayCheck]); iniGetInt(File,"HeadValue",PlayerInfo[playerid][pHeadValue]); iniGetInt(File,"Jailed",PlayerInfo[playerid][pJailed]); iniGetInt(File,"JailTime",PlayerInfo[playerid][pJailTime]); iniGetInt(File,"Materials",PlayerInfo[playerid][pMats]); iniGetInt(File,"Drugs",PlayerInfo[playerid][pDrugs]); iniGetInt(File,"Leader",PlayerInfo[playerid][pLeader]); iniGetInt(File,"Member",PlayerInfo[playerid][pMember]); iniGetInt(File,"FMember",PlayerInfo[playerid][pFMember]); iniGetInt(File,"Rank",PlayerInfo[playerid][pRank]); iniGetInt(File,"Zvan",PlayerInfo[playerid][pZvan]); iniGetInt(File,"Char",PlayerInfo[playerid][pChar]); iniGetInt(File,"ContractTime",PlayerInfo[playerid][pContractTime]); iniGetInt(File,"DetSkill",PlayerInfo[playerid][pDetSkill]); iniGetInt(File,"SexSkill",PlayerInfo[playerid][pSexSkill]); iniGetInt(File,"BoxSkill",PlayerInfo[playerid][pBoxSkill]); iniGetInt(File,"LawSkill",PlayerInfo[playerid][pLawSkill]); iniGetInt(File,"MechSkill",PlayerInfo[playerid][pMechSkill]); iniGetInt(File,"JackSkill",PlayerInfo[playerid][pJackSkill]); iniGetInt(File,"VorSkill",PlayerInfo[playerid][pVorSkill]); iniGetInt(File,"CarSkill",PlayerInfo[playerid][pCarSkill]); iniGetInt(File,"NewsSkill",PlayerInfo[playerid][pNewsSkill]); iniGetInt(File,"DrugsSkill",PlayerInfo[playerid][pDrugsSkill]); iniGetInt(File,"CookSkill",PlayerInfo[playerid][pCookSkill]); iniGetInt(File,"FishSkill",PlayerInfo[playerid][pFishSkill]); iniGetFloat(File,"pSHealth",PlayerInfo[playerid][pSHealth]); iniGetFloat(File,"pHealth",PlayerInfo[playerid][pHealth]); iniGetInt(File,"Int",PlayerInfo[playerid][pInt]); iniGetInt(File,"Local",PlayerInfo[playerid][pLocal]); iniGetInt(File,"Team",PlayerInfo[playerid][pTeam]); iniGetInt(File,"Model",PlayerInfo[playerid][pModel]); iniGetInt(File,"PhoneNr",PlayerInfo[playerid][pPnumber]); iniGetInt(File,"House",PlayerInfo[playerid][pPhousekey]); iniGetInt(File,"Bizz",PlayerInfo[playerid][pPbiskey]); iniGetFloat(File,"Pos_x",PlayerInfo[playerid][pPos_x]); iniGetFloat(File,"Pos_y",PlayerInfo[playerid][pPos_y]); iniGetFloat(File,"Pos_z",PlayerInfo[playerid][pPos_z]); iniGetInt(File,"CarLic",PlayerInfo[playerid][pCarLic]); iniGetInt(File,"MotoLic",PlayerInfo[playerid][pMotoLic]); iniGetInt(File,"BusLic",PlayerInfo[playerid][pBusLic]); iniGetInt(File,"GruzLic",PlayerInfo[playerid][pGruzLic]); iniGetInt(File,"FlyLic",PlayerInfo[playerid][pFlyLic]); iniGetInt(File,"BoatLic",PlayerInfo[playerid][pBoatLic]); iniGetInt(File,"FishLic",PlayerInfo[playerid][pFishLic]); iniGetInt(File,"GunLic",PlayerInfo[playerid][pGunLic]); iniGetInt(File,"Pasport",PlayerInfo[playerid][pPasport]); iniGetInt(File,"Gun1",PlayerInfo[playerid][pGun1]); iniGetInt(File,"Gun2",PlayerInfo[playerid][pGun2]); iniGetInt(File,"Gun3",PlayerInfo[playerid][pGun3]); iniGetInt(File,"Gun4",PlayerInfo[playerid][pGun4]); iniGetInt(File,"Ammo1",PlayerInfo[playerid][pAmmo1]); iniGetInt(File,"Ammo2",PlayerInfo[playerid][pAmmo2]); iniGetInt(File,"Ammo3",PlayerInfo[playerid][pAmmo3]); iniGetInt(File,"Ammo4",PlayerInfo[playerid][pAmmo4]); iniGetInt(File,"CarTime",PlayerInfo[playerid][pCarTime]); iniGetInt(File,"VorTime",PlayerInfo[playerid][pVorTime]); iniGetInt(File,"PayDay",PlayerInfo[playerid][pPayDay]); iniGetInt(File,"PayDayHad",PlayerInfo[playerid][pPayDayHad]); iniGetInt(File,"CDPlayer",PlayerInfo[playerid][pCDPlayer]); iniGetInt(File,"Wins",PlayerInfo[playerid][pWins]); iniGetInt(File,"Loses",PlayerInfo[playerid][pLoses]); iniGetInt(File,"AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk]); iniGetInt(File,"DrugPerk",PlayerInfo[playerid][pDrugPerk]); iniGetInt(File,"MiserPerk",PlayerInfo[playerid][pMiserPerk]); iniGetInt(File,"PainPerk",PlayerInfo[playerid][pPainPerk]); iniGetInt(File,"TraderPerk",PlayerInfo[playerid][pTraderPerk]); iniGetInt(File,"Tutorial",PlayerInfo[playerid][pTut]); iniGetInt(File,"MuteTime",PlayerInfo[playerid][pMuteTime]); iniGetInt(File,"AutoKey",PlayerInfo[playerid][pAutoKey]); iniGetInt(File,"Warnings",PlayerInfo[playerid][pWarns]); iniGetInt(File,"Adjustable",PlayerInfo[playerid][pAdjustable]); iniGetInt(File,"Fuel",PlayerInfo[playerid][pFuel]); iniSetInt(File,"Zakonop",PlayerInfo[playerid][pZakonp]); iniGetInt(File,"CarKey3",PlayerInfo[playerid][pCarKey3]); iniGetInt(File,"CarKey2",PlayerInfo[playerid][pCarKey2]); iniGetInt(File,"CarKey",PlayerInfo[playerid][pCarKey]); iniGetInt(File,"Ord",PlayerInfo[playerid][pOrd]); iniGetInt(File,"Sh",PlayerInfo[playerid][pSh]); iniGetInt(File,"Mask",PlayerInfo[playerid][pMask]); iniGetInt(File,"Balance",PlayerInfo[playerid][pBalance]); iniGetInt(File,"MaskSkill",PlayerInfo[playerid][pMaskSkill]); iniGetInt(File,"Pass",PlayerInfo[playerid][pPass]); iniGetInt(File,"Married",PlayerInfo[playerid][pMarried]); iniGetInt(File,"Inet",PlayerInfo[playerid][pInet]); iniGetInt(File,"Vaip",PlayerInfo[playerid][pVaip]); new ptemp[80]; iniGet(File,"MarriedTo",ptemp); strmid(PlayerInfo[playerid][pMarriedTo], ptemp, 0, strlen(ptemp), 255); iniClose(File); } PlayerInfo[playerid][pAdjustable] = 0; ResetPlayerMoney(playerid); ConsumingMoney[playerid] = 1; NormMoney[playerid] = 2; PlayerInfo[playerid][pMuteTime] = 0; PlayerInfo[playerid][pMuted] = 0; AntiMoney[playerid] = AntiMoney[playerid] + PlayerInfo[playerid][pCash]; GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]); CurrentMoney[playerid] = PlayerInfo[playerid][pCash]; if(PlayerInfo[playerid][pReg] == 0) { PlayerInfo[playerid][pLevel] = 1; PlayerInfo[playerid][pSHealth] = 0.0; PlayerInfo[playerid][pHealth] = 50.0; PlayerInfo[playerid][pPos_x] = 1190.9117; PlayerInfo[playerid][pPos_y] = -1655.5339; PlayerInfo[playerid][pPos_z] = 13.8698; PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pMotoLic] = 0; PlayerInfo[playerid][pCarLic] = 0; PlayerInfo[playerid][pGunLic] = 0; PlayerInfo[playerid][pCarLic] = 0; PlayerInfo[playerid][pFlyLic] = 0; PlayerInfo[playerid][pBoatLic] = 0; PlayerInfo[playerid][pFishLic] = 0; PlayerInfo[playerid][pMotoLic] = 0; PlayerInfo[playerid][pBusLic] = 0; PlayerInfo[playerid][pGruzLic] = 0; PlayerInfo[playerid][pLocal] = 255; PlayerInfo[playerid][pTeam] = 3; PlayerInfo[playerid][pModel] = 7; new randphone = 100000 + random(899999);//minimum 1000 max 9999 //giving one at the start PlayerInfo[playerid][pPnumber] = randphone; PlayerInfo[playerid][pPhousekey] = 255; PlayerInfo[playerid][pPbiskey] = 255; PlayerInfo[playerid][pAccount] = 0; PlayerInfo[playerid][pReg] = 1; NormMoney[playerid] = 2; AntiMoney[playerid] = AntiMoney[playerid] + 10000; GivePlayerMoney(playerid, 10000); PlayerInfo[playerid][pPos_x] = 239.8503;// ñíîâà êîîðäèíàòû ïåðâîãî ïîÿâëåíèÿ PlayerInfo[playerid][pPos_y] = 57.5682; PlayerInfo[playerid][pPos_z] = 2.5167; } //------------------------------------------------ public OnPlayerRegister(playerid, password[]) { if(IsPlayerConnected(playerid)) { new string3[32]; new playername3[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername3, sizeof(playername3)); format(string3, sizeof(string3), "nick/%s.ini", playername3); new File = iniOpen(string3); if(!File) { iniSet(File,"Key",MD5_Hash(password)); PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid); iniSetInt(File,"Level",PlayerInfo[playerid][pLevel]); iniSetInt(File,"AdminLevel",PlayerInfo[playerid][pAdmin]); iniSetInt(File,"HelperLevel",PlayerInfo[playerid][pHelper]); iniSetInt(File,"DonateRank",PlayerInfo[playerid][pDonateRank]); iniSetInt(File,"UpgradePoints",PlayerInfo[playerid][gPupgrade]); iniSetInt(File,"ConnectTime",PlayerInfo[playerid][pConnectTime]); iniSetInt(File,"Registered",PlayerInfo[playerid][pReg]); iniSetInt(File,"Sex",PlayerInfo[playerid][pSex]); iniSetInt(File,"Age",PlayerInfo[playerid][pAge]); iniSetInt(File,"Origin",PlayerInfo[playerid][pOrigin]); iniSetInt(File,"CK",PlayerInfo[playerid][pCK]); iniSetInt(File,"Muted",PlayerInfo[playerid][pMuted]); iniSetInt(File,"Respect",PlayerInfo[playerid][pExp]); iniSetInt(File,"Money",PlayerInfo[playerid][pCash]); iniSetInt(File,"Bank",PlayerInfo[playerid][pAccount]); iniSetInt(File,"Crimes",PlayerInfo[playerid][pCrimes]); iniSetInt(File,"Kills",PlayerInfo[playerid][pKills]); iniSetInt(File,"Deaths",PlayerInfo[playerid][pDeaths]); iniSetInt(File,"Arrested",PlayerInfo[playerid][pArrested]); iniSetInt(File,"WantedDeaths",PlayerInfo[playerid][pWantedDeaths]); iniSetInt(File,"Phonebook",PlayerInfo[playerid][pPhoneBook]); iniSetInt(File,"Kpk",PlayerInfo[playerid][pKpk]); iniSetInt(File,"LottoNr",PlayerInfo[playerid][pLottoNr]); iniSetInt(File,"Fishes",PlayerInfo[playerid][pFishes]); iniSetInt(File,"BiggestFish",PlayerInfo[playerid][pBiggestFish]); iniSetInt(File,"Job",PlayerInfo[playerid][pJob]); iniSetInt(File,"Paycheck",PlayerInfo[playerid][pPayCheck]); iniSetInt(File,"HeadValue",PlayerInfo[playerid][pHeadValue]); iniSetInt(File,"Jailed",PlayerInfo[playerid][pJailed]); iniSetInt(File,"JailTime",PlayerInfo[playerid][pJailTime]); iniSetInt(File,"Materials",PlayerInfo[playerid][pMats]); iniSetInt(File,"Drugs",PlayerInfo[playerid][pDrugs]); iniSetInt(File,"Leader",PlayerInfo[playerid][pLeader]); iniSetInt(File,"Member",PlayerInfo[playerid][pMember]); iniSetInt(File,"FMember",PlayerInfo[playerid][pFMember]); iniSetInt(File,"Rank",PlayerInfo[playerid][pRank]); iniSetInt(File,"Zvan",PlayerInfo[playerid][pZvan]); iniSetInt(File,"Char",PlayerInfo[playerid][pChar]); iniSetInt(File,"ContractTime",PlayerInfo[playerid][pContractTime]); iniSetInt(File,"DetSkill",PlayerInfo[playerid][pDetSkill]); iniSetInt(File,"SexSkill",PlayerInfo[playerid][pSexSkill]); iniSetInt(File,"BoxSkill",PlayerInfo[playerid][pBoxSkill]); iniSetInt(File,"LawSkill",PlayerInfo[playerid][pLawSkill]); iniSetInt(File,"MechSkill",PlayerInfo[playerid][pMechSkill]); iniSetInt(File,"JackSkill",PlayerInfo[playerid][pJackSkill]); iniSetInt(File,"VorSkill",PlayerInfo[playerid][pVorSkill]); iniSetInt(File,"CarSkill",PlayerInfo[playerid][pCarSkill]); iniSetInt(File,"NewsSkill",PlayerInfo[playerid][pNewsSkill]); iniSetInt(File,"DrugsSkill",PlayerInfo[playerid][pDrugsSkill]); iniSetInt(File,"CookSkill",PlayerInfo[playerid][pCookSkill]); iniSetInt(File,"FishSkill",PlayerInfo[playerid][pFishSkill]); iniSetFloat(File,"pSHealth",PlayerInfo[playerid][pSHealth]); GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]); iniSetFloat(File,"pHealth",PlayerInfo[playerid][pHealth]); iniSetInt(File,"Int",PlayerInfo[playerid][pInt]); iniSetInt(File,"Local",PlayerInfo[playerid][pLocal]); iniSetInt(File,"Team",PlayerInfo[playerid][pTeam]); iniSetInt(File,"Model",PlayerInfo[playerid][pModel]); iniSetInt(File,"PhoneNr",PlayerInfo[playerid][pPnumber]); iniSetInt(File,"House",PlayerInfo[playerid][pPhousekey]); iniSetInt(File,"Bizz",PlayerInfo[playerid][pPbiskey]); if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0)) { PlayerInfo[playerid][pPos_x] = 1684.9; PlayerInfo[playerid][pPos_y] = -2244.5; PlayerInfo[playerid][pPos_z] = 13.5; } if(Spectate[playerid] != 255) { PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx]; PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy]; PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz]; PlayerInfo[playerid][pInt] = Unspec[playerid][sPint]; PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal]; } iniSetFloat(File,"Pos_x",PlayerInfo[playerid][pPos_x]); iniSetFloat(File,"Pos_y",PlayerInfo[playerid][pPos_y]); iniSetFloat(File,"Pos_z",PlayerInfo[playerid][pPos_z]); iniSetInt(File,"CarLic",PlayerInfo[playerid][pCarLic]); iniSetInt(File,"MotoLic",PlayerInfo[playerid][pMotoLic]); iniSetInt(File,"BusLic",PlayerInfo[playerid][pBusLic]); iniSetInt(File,"GruzLic",PlayerInfo[playerid][pGruzLic]); iniSetInt(File,"FlyLic",PlayerInfo[playerid][pFlyLic]); iniSetInt(File,"BoatLic",PlayerInfo[playerid][pBoatLic]); iniSetInt(File,"FishLic",PlayerInfo[playerid][pFishLic]); iniSetInt(File,"GunLic",PlayerInfo[playerid][pGunLic]); iniSetInt(File,"Pasport",PlayerInfo[playerid][pPasport]); iniSetInt(File,"Gun1",PlayerInfo[playerid][pGun1]); iniSetInt(File,"Gun2",PlayerInfo[playerid][pGun2]); iniSetInt(File,"Gun3",PlayerInfo[playerid][pGun3]); iniSetInt(File,"Gun4",PlayerInfo[playerid][pGun4]); iniSetInt(File,"Ammo1",PlayerInfo[playerid][pAmmo1]); iniSetInt(File,"Ammo2",PlayerInfo[playerid][pAmmo2]); iniSetInt(File,"Ammo3",PlayerInfo[playerid][pAmmo3]); iniSetInt(File,"Ammo4",PlayerInfo[playerid][pAmmo4]); iniSetInt(File,"CarTime",PlayerInfo[playerid][pCarTime]); iniSetInt(File,"VorTime",PlayerInfo[playerid][pVorTime]); iniSetInt(File,"PayDay",PlayerInfo[playerid][pPayDay]); iniSetInt(File,"PayDayHad",PlayerInfo[playerid][pPayDayHad]); iniSetInt(File,"CDPlayer",PlayerInfo[playerid][pCDPlayer]); iniSetInt(File,"Wins",PlayerInfo[playerid][pWins]); iniSetInt(File,"Loses",PlayerInfo[playerid][pLoses]); iniSetInt(File,"AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk]); iniSetInt(File,"DrugPerk",PlayerInfo[playerid][pDrugPerk]); iniSetInt(File,"MiserPerk",PlayerInfo[playerid][pMiserPerk]); iniSetInt(File,"PainPerk",PlayerInfo[playerid][pPainPerk]); iniSetInt(File,"TraderPerk",PlayerInfo[playerid][pTraderPerk]); iniSetInt(File,"Tutorial",0); iniSetInt(File,"MuteTime",PlayerInfo[playerid][pMuteTime]); iniSetInt(File,"AutoKey",PlayerInfo[playerid][pAutoKey]); iniSetInt(File,"Warnings",PlayerInfo[playerid][pWarns]); iniSetInt(File,"Adjustable",PlayerInfo[playerid][pAdjustable]); iniSetInt(File,"Fuel",PlayerInfo[playerid][pFuel]); iniSetInt(File,"Zakonop",PlayerInfo[playerid][pZakonp]); iniSetInt(File,"CarKey3",0); iniSetInt(File,"CarKey2",0); iniSetInt(File,"CarKey",0); iniSetInt(File,"Ord",PlayerInfo[playerid][pOrd]); iniSetInt(File,"Pass",0); iniSetInt(File,"Sh",0); iniSetInt(File,"Mask",0); iniSetInt(File,"Balance",100); iniSetInt(File,"MaskSkill",0); iniSetInt(File,"Inet",pInet); iniSetInt(File,"Married",PlayerInfo[playerid][pMarried]); iniSetInt(File,"Vaip",Vaip); new ptemp[80]; format(ptemp,sizeof(ptemp),"%s",PlayerInfo[playerid][pMarriedTo]); iniSet(File,"MarriedTo",ptemp); iniClose(File); SendClientMessage(playerid, 0x33CCFFAA, "Âû çàðåãèñòðèðîâàííû, ìîæåòå âîéòè!"); } } return 1; }
public OnPlayerUpdate_GF(playerid) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid]) { new string3[32]; new playername3[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername3, sizeof(playername3)); format(string3, sizeof(string3), "nick/%s.ini", playername3); new File = iniOpen(string3); if(!File) { // iniSet(File,"Key",PlayerInfo[playerid][pKey]); PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid); iniSetInt(File,"Level",PlayerInfo[playerid][pLevel]); iniSetInt(File,"AdminLevel",PlayerInfo[playerid][pAdmin]); iniSetInt(File,"HelperLevel",PlayerInfo[playerid][pHelper]); iniSetInt(File,"DonateRank",PlayerInfo[playerid][pDonateRank]); iniSetInt(File,"UpgradePoints",PlayerInfo[playerid][gPupgrade]); iniSetInt(File,"ConnectTime",PlayerInfo[playerid][pConnectTime]); iniSetInt(File,"Registered",PlayerInfo[playerid][pReg]); iniSetInt(File,"Sex",PlayerInfo[playerid][pSex]); iniSetInt(File,"Age",PlayerInfo[playerid][pAge]); iniSetInt(File,"Origin",PlayerInfo[playerid][pOrigin]); iniSetInt(File,"CK",PlayerInfo[playerid][pCK]); iniSetInt(File,"Muted",PlayerInfo[playerid][pMuted]); iniSetInt(File,"Respect",PlayerInfo[playerid][pExp]); iniSetInt(File,"Money",PlayerInfo[playerid][pCash]); iniSetInt(File,"Bank",PlayerInfo[playerid][pAccount]); iniSetInt(File,"Crimes",PlayerInfo[playerid][pCrimes]); iniSetInt(File,"Kills",PlayerInfo[playerid][pKills]); iniSetInt(File,"Deaths",PlayerInfo[playerid][pDeaths]); iniSetInt(File,"Arrested",PlayerInfo[playerid][pArrested]); iniSetInt(File,"WantedDeaths",PlayerInfo[playerid][pWantedDeaths]); iniSetInt(File,"Phonebook",PlayerInfo[playerid][pPhoneBook]); iniSetInt(File,"Kpk",PlayerInfo[playerid][pKpk]); iniSetInt(File,"LottoNr",PlayerInfo[playerid][pLottoNr]); iniSetInt(File,"Fishes",PlayerInfo[playerid][pFishes]); iniSetInt(File,"BiggestFish",PlayerInfo[playerid][pBiggestFish]); iniSetInt(File,"Job",PlayerInfo[playerid][pJob]); iniSetInt(File,"Paycheck",PlayerInfo[playerid][pPayCheck]); iniSetInt(File,"HeadValue",PlayerInfo[playerid][pHeadValue]); iniSetInt(File,"Jailed",PlayerInfo[playerid][pJailed]); iniSetInt(File,"JailTime",PlayerInfo[playerid][pJailTime]); iniSetInt(File,"Materials",PlayerInfo[playerid][pMats]); iniSetInt(File,"Drugs",PlayerInfo[playerid][pDrugs]); iniSetInt(File,"Leader",PlayerInfo[playerid][pLeader]); iniSetInt(File,"Member",PlayerInfo[playerid][pMember]); iniSetInt(File,"FMember",PlayerInfo[playerid][pFMember]); iniSetInt(File,"Rank",PlayerInfo[playerid][pRank]); iniSetInt(File,"Zvan",PlayerInfo[playerid][pZvan]); iniSetInt(File,"Char",PlayerInfo[playerid][pChar]); iniSetInt(File,"ContractTime",PlayerInfo[playerid][pContractTime]); iniSetInt(File,"DetSkill",PlayerInfo[playerid][pDetSkill]); iniSetInt(File,"SexSkill",PlayerInfo[playerid][pSexSkill]); iniSetInt(File,"BoxSkill",PlayerInfo[playerid][pBoxSkill]); iniSetInt(File,"LawSkill",PlayerInfo[playerid][pLawSkill]); iniSetInt(File,"MechSkill",PlayerInfo[playerid][pMechSkill]); iniSetInt(File,"JackSkill",PlayerInfo[playerid][pJackSkill]); iniSetInt(File,"VorSkill",PlayerInfo[playerid][pVorSkill]); iniSetInt(File,"CarSkill",PlayerInfo[playerid][pCarSkill]); iniSetInt(File,"NewsSkill",PlayerInfo[playerid][pNewsSkill]); iniSetInt(File,"DrugsSkill",PlayerInfo[playerid][pDrugsSkill]); iniSetInt(File,"CookSkill",PlayerInfo[playerid][pCookSkill]); iniSetInt(File,"FishSkill",PlayerInfo[playerid][pFishSkill]); iniSetFloat(File,"pSHealth",PlayerInfo[playerid][pSHealth]); GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]); iniSetFloat(File,"pHealth",PlayerInfo[playerid][pHealth]); iniSetInt(File,"Int",PlayerInfo[playerid][pInt]); iniSetInt(File,"Local",PlayerInfo[playerid][pLocal]); iniSetInt(File,"Team",PlayerInfo[playerid][pTeam]); iniSetInt(File,"Model",PlayerInfo[playerid][pModel]); iniSetInt(File,"PhoneNr",PlayerInfo[playerid][pPnumber]); iniSetInt(File,"House",PlayerInfo[playerid][pPhousekey]); iniSetInt(File,"Bizz",PlayerInfo[playerid][pPbiskey]); if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0)) { PlayerInfo[playerid][pPos_x] = 1684.9; PlayerInfo[playerid][pPos_y] = -2244.5; PlayerInfo[playerid][pPos_z] = 13.5; } if(Spectate[playerid] != 255) { PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx]; PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy]; PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz]; PlayerInfo[playerid][pInt] = Unspec[playerid][sPint]; PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal]; } iniSetFloat(File,"Pos_x",PlayerInfo[playerid][pPos_x]); iniSetFloat(File,"Pos_y",PlayerInfo[playerid][pPos_y]); iniSetFloat(File,"Pos_z",PlayerInfo[playerid][pPos_z]); iniSetInt(File,"CarLic",PlayerInfo[playerid][pCarLic]); iniSetInt(File,"MotoLic",PlayerInfo[playerid][pMotoLic]); iniSetInt(File,"FlyLic",PlayerInfo[playerid][pFlyLic]); iniSetInt(File,"BusLic",PlayerInfo[playerid][pBusLic]); iniSetInt(File,"GruzLic",PlayerInfo[playerid][pGruzLic]); iniSetInt(File,"BoatLic",PlayerInfo[playerid][pBoatLic]); iniSetInt(File,"FishLic",PlayerInfo[playerid][pFishLic]); iniSetInt(File,"GunLic",PlayerInfo[playerid][pGunLic]); iniSetInt(File,"Pasport",PlayerInfo[playerid][pPasport]); iniSetInt(File,"Gun1",PlayerInfo[playerid][pGun1]); iniSetInt(File,"Gun2",PlayerInfo[playerid][pGun2]); iniSetInt(File,"Gun3",PlayerInfo[playerid][pGun3]); iniSetInt(File,"Gun4",PlayerInfo[playerid][pGun4]); iniSetInt(File,"Ammo1",PlayerInfo[playerid][pAmmo1]); iniSetInt(File,"Ammo2",PlayerInfo[playerid][pAmmo2]); iniSetInt(File,"Ammo3",PlayerInfo[playerid][pAmmo3]); iniSetInt(File,"Ammo4",PlayerInfo[playerid][pAmmo4]); iniSetInt(File,"CarTime",PlayerInfo[playerid][pCarTime]); iniSetInt(File,"VorTime",PlayerInfo[playerid][pVorTime]); iniSetInt(File,"PayDay",PlayerInfo[playerid][pPayDay]); iniSetInt(File,"PayDayHad",PlayerInfo[playerid][pPayDayHad]); iniSetInt(File,"CDPlayer",PlayerInfo[playerid][pCDPlayer]); iniSetInt(File,"Wins",PlayerInfo[playerid][pWins]); iniSetInt(File,"Loses",PlayerInfo[playerid][pLoses]); iniSetInt(File,"AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk]); iniSetInt(File,"DrugPerk",PlayerInfo[playerid][pDrugPerk]); iniSetInt(File,"MiserPerk",PlayerInfo[playerid][pMiserPerk]); iniSetInt(File,"PainPerk",PlayerInfo[playerid][pPainPerk]); iniSetInt(File,"TraderPerk",PlayerInfo[playerid][pTraderPerk]); iniSetInt(File,"Tutorial",PlayerInfo[playerid][pTut]); iniSetInt(File,"MuteTime",PlayerInfo[playerid][pMuteTime]); iniSetInt(File,"AutoKey",PlayerInfo[playerid][pAutoKey]); iniSetInt(File,"Warnings",PlayerInfo[playerid][pWarns]); iniSetInt(File,"Adjustable",PlayerInfo[playerid][pAdjustable]); iniSetInt(File,"Fuel",PlayerInfo[playerid][pFuel]); iniSetInt(File,"Zakonop",PlayerInfo[playerid][pZakonp]); iniSetInt(File,"CarKey3",PlayerInfo[playerid][pCarKey3]); iniSetInt(File,"CarKey2",PlayerInfo[playerid][pCarKey2]); iniSetInt(File,"CarKey",PlayerInfo[playerid][pCarKey]); iniSetInt(File,"Ord",PlayerInfo[playerid][pOrd]); iniSetInt(File,"Sh",PlayerInfo[playerid][pSh]); iniSetInt(File,"Mask",PlayerInfo[playerid][pMask]); iniSetInt(File,"Balance",PlayerInfo[playerid][pBalance]); iniSetInt(File,"MaskSkill",PlayerInfo[playerid][pMaskSkill]); iniSetInt(File,"Pass",PlayerInfo[playerid][pPass]); iniSetInt(File,"Married",PlayerInfo[playerid][pMarried]); iniSetInt(File,"Inet",PlayerInfo[playerid][pInet]); iniSetInt(File,"Vaip",PlayerInfo[playerid][pVaip]); new year, month, day; getdate(year, month, day); new strstre[100]; format(strstre,sizeof(strstre),"%d/%d/%d",day,month,year); iniSet(File,"Online",strstre); new ptemp[80]; format(ptemp,sizeof(ptemp),"%s",PlayerInfo[playerid][pMarriedTo]); iniSet(File,"MarriedTo",ptemp); iniClose(File); } } } return 1; } [/cut]
|
| |
|
|
| xpsoft | Дата: Пятница, 11.11.2011, 20:14 | Сообщение # 5890 |
|
Освоившийся
Группа:
Пользователи
Сообщений: 97
Награды: 0
Город: Minsk
Репутация: -19
Замечания: 0%
Статус: 
| Ребят, сижу уже второй час. Не могу найти коды для форматирования текста. Допустим, я знаю только \n - перенос на другую строчку и \t пробел. Кто знает ещё какие-нибудь коды?
|
| |
|
|
| spainFAN | Дата: Пятница, 11.11.2011, 20:26 | Сообщение # 5891 |
|
Новенький
Группа:
Пользователи
Сообщений: 45
Награды: 0
Город: sadasd
Репутация: -22
Замечания: 40%
Статус: 
| Кому Дать скрипт что ставить у дома 2 и более машин | И варота у дома только хозяин и кто арендует может открыть Писать в Скайп - tolea695 Буду рад и за +
на 98% готов мод
<a href=http://smayli.ru/generatonadpisey/><img src='http://smayli.ru/generatonadpisey/smiles/cb911f10e0816a629dd2f06ff2bcf896.gif' border=0></a> _________________ skype- tolea695
|
| |
|
|
| xpsoft | Дата: Пятница, 11.11.2011, 20:58 | Сообщение # 5892 |
|
Освоившийся
Группа:
Пользователи
Сообщений: 97
Награды: 0
Город: Minsk
Репутация: -19
Замечания: 0%
Статус: 
| забавно. замечания 20 проц престиж - 11 да и ава трёмная )
|
| |
|
|
| vIruson | Дата: Пятница, 11.11.2011, 22:32 | Сообщение # 5893 |
|
Освоившийся
Группа:
Пользователи
Сообщений: 79
Награды: 1
Репутация: 4
Замечания: 0%
Статус: 
| у меня такая проблема. Ник игрока видно только тогда, когда подходиш к нему в плотную SetNameTagDrawDistance уже на 1000 ставил и всё равно таже фигня
|
| |
|
|
| xpsoft | Дата: Суббота, 12.11.2011, 14:12 | Сообщение # 5894 |
|
Освоившийся
Группа:
Пользователи
Сообщений: 97
Награды: 0
Город: Minsk
Репутация: -19
Замечания: 0%
Статус: 
| ты нафига текст такой сделал? переделывай Добавлено (12.11.2011, 14:12) --------------------------------------------- Скажите, я поставил стандартный лифт, тот что с са-мп ком шёл. ls_elevator. но он почему то не ездит по этажам. я нажимаю к примеру second floor и не едет никуда лифт. как починить?
|
| |
|
|
| Alcoholik | Дата: Суббота, 12.11.2011, 14:33 | Сообщение # 5895 |
|
Мастер джэдай
Группа:
Администратор
Сообщений: 8299
Награды: 111
Город: Санкт-Петербург
Репутация: 6085
Статус: 
| vIruson, попробуй вообще убрать SetNameTagDrawDistance
if(isset($beer)&&isset($girl)) { drink($beer);fuck($girl); }else die(); Мониторинг sa:mp серверов Приватно никого не консультирую, моды также не пишу, ни так, ни за деньги. Моя ICQ 675715, пишу только с неё. Все остальные Роачи фейки, ничего я не продаю и продавать не буду, вас разводят.
|
| |
|
|
|
 |
|
 | |
| |
|