Quantcast
Channel: SA-MP Forums
Viewing all 18226 articles
Browse latest View live

[Ajuda] Comando Agendar Ban

$
0
0
Pessoal fiz um comando aqui para agendar bans de jogadores off-line, ele funciona corretamente, salva e tals.

mas o problema é que, o admin que for usar este comando poderá banir outros admin, e eu queria bloquear isso, alguem pode me ajudar..

inicio do comando..

Code:

CMD:agendarban(playerid, params[]) {
  if(Player[playerid][Admin] < 1) return SendClientMessage(playerid,COR_VERMELHO,"| ERRO | Comando Inválido");
  new NickBanido[MAX_PLAYER_NAME],Motivo[40],string[120],string2[150],string3[170],foibanida[78],Ano, Mes, Dia, Hora, Minuto, Segundo, Data[50], Horario[50];
  new idx = NickBanido[idx];
  if(sscanf(params,"s[24]s[40]",NickBanido,Motivo)) return SendClientMessage(playerid, COR_VERMELHO,"| ERRO | Use /AgendarBan [ Conta ] [ Motivo ]");
  if(IsPlayerConnected(NickBanido[idx])) return SendClientMessage(playerid, COR_VERMELHO, "| ERRO | Este jogador(a) está conectado(a), use /Ban");


Ayuda con MySQL remoto.

$
0
0
Tengo un problema al conectar el servidor a la base de datos MySQL.
Tengo mi web alojada en GoDaddy, y hay una BD llamada samp que es la del servidor, pero al iniciarlo me aparece error al conectar. He leído que es de un MySQL remoto pero no se cómo hacerlo.

SA-MP 0.3.7 rc6 problem

$
0
0
I have a 2 year old script than i found my old pc, the script is for a friend that is no longer around, and it doesn't contain the .pwn files only .amx, the script used to work with no problems, but now i try to connect with 0.3.7 r2 and r1 and it says wrong version when i connect then disconnects me, but if i use earlier versions such as 0.3.7 rc 3 or 0.3z r2 or anything it simply shows the server offline, i've looked for a download link of the 0.3.7 rc6-3 everywhere and i wasn't able to find at all, i know it's a test version but i need to log in into the server, is there anyway to get a download link or any idea how to fix?

[Pedido] MATOU EM "20" SEGUNDOS

$
0
0
Bom, venho aqui pedir uma ajuda de vocês eu vi um servidor que no duelo dele quando mata o oponente aparece no chat em quantos segundos ele conseguiu matar o oponente, eu queria pedir se tem como alguem mim arrumar uma base pra mim estudar...


Acho que vocês entenderam como é Agradeço

Windows 8.1 x86 bit - page_fault_in_nonpaged_area error on startup

$
0
0
Hello everybody, so i have just installed windows 8.1 x86 bit yesterday and today when i tried to restart my Laptop it crashed & faills to start and showed this error 'page_fault_in_nonpaged_area' on an blue screen and iam currently running safe mode with networking becuase i have tried reinstalling my windows 8.1 2 times and nothing happens please some help

Note: i can't share anywhere else becuase i can't handle my pc fully now so please say that this is the correct section
OS Details:-
Windows: 8.1 x86 bit
Laptop Model: HP Probook 4540s

Liên thông Đại học 2017 chương trình mầm non trung ương

$
0
0
Năm 2017 có nhiều trường đào tạo các hệ khác nhau như liên thông đại học, trung cấp mầm non, cao đẳng sư phạm trung ương, dưới đây là một số trường tiêu biểu:

Những trường có chương trình liên thông đại học của trung cấp mầm non trường cao đẳng sư phạm trung ương

liên thông đại học trường Đại học Kinh tế TP.HCM

Đối tượng tuyển sinh: thí sinh có bằng tốt nghiệp cao đẳng chính quy theo điểm a và điểm c khoản 1 điều 7 của Thông tư Quy định đào tạo liên thông trình độ cao đẳng, đại học Ban hành kèm theo văn bản hợp nhất số 02/VBHN-BGDĐT ngày 05 tháng 8 năm 2015 của Bộ trưởng Bộ Giáo dục và Đào tạo.
Các ngành đào tạo của trường gồm: Quản trị ngoại thương, Marketing, Tài chính công, Tài chính ngân hàng, Kế toán doanh nghiệp, tin học quản lý

Liên thông đại học trường Học viện ngân hàng

Thời gian đào tạo: 18 tháng (học trong tuần hoặc t7, chủ nhật)
Hình thức đào tạo: Chính quy (đào tạo theo hệ thống tín chỉ), Bằng cấp: Đại học chính quy Đối tượng tuyển sinh
Thí sinh đã tốt nghiệp cao đẳng của các trường Cao Đẳng sư phạm trung ương có báo cáo tự đánh giá và triển khai kiểm định chất lượng theo tiến độ Bộ Giáo Dục và Đào Tạo quy định; Thí sinh đã tốt nghiệp Cao Đẳng Nghề của các trường có báo cáo tự đánh giá và triển khai kiểm định chất lượng theo tiến độ do được bộ Lao Động Thương Binh và Xã Hội quy định.
Bằng tốt nghiệp của các trường nước ngoài, trường nước ngoài hoạt động hợp pháp tại Việt Nam thì văn bằng phải được công nhận theo quy định của Bộ Giáo dục và Đào tạo hoặc Bộ Lao động Thương binh và Xã hội; Người tốt nghiệp Cao Đẳng sư phạm trung ương Nghề sư phạm mà chưa có bằng tốt nghiệp THPT phải học và được công nhận hoàn thành các môn văn hóa trong chương trình giáo dục THPT theo quy định của Bộ Giáo dục và Đào tạo.

Liên thông đại học trường Đại học sư phạm Tp.HCM



Chỉ mất 3 năm để nhận bằng Đại học, ngành Sư phạm mầm non và Sư phạm tiểu học từ trường đào tạo sư phạm hàng đầu khu vực phía Nam là Đại học Sư phạm TP.HCM. Không những vậy, bạn còn được cam kết đào tạo trong môi trường giáo dục chuyên nghiệp với cơ sở vật chất hiện đại. Cơ hội học liên thông đại học từ trung cấp mầm non nay đã đơn giản và thuận lợi hơn cho các bạn sinh viên với chương trình liên thông Đại học Sư phạm TP. HCM ngành Sư phạm mầm non và Sư phạm tiểu học.

Năm 2017 các trường Đại học công nghiệp thực phẩm TP.HCM tiếp tục tuyển sinh liên thông đại học với 14 ngành cao đẳng chính quy với nhiều chương trình cam kết việc làm, đặt hàng tuyển dụng từ doanh nghiệp. Thí sinh dưới 15 điểm có thể học cao đẳng sư phạm trung ương liên thông lên đại học chính quy

Các ngành cao đẳng chính quy gồm: Công nghệ thực phẩm, Công nghệ chế biến thủy sản, Công nghệ may, Công nghệ hóa học, Công nghệ thông tin, Công nghệ cơ khí, Điện – điện tử, Điện tử công nghiệp, Vận hành và Sửa chữa thiết bị lạnh (điện lạnh dân dụng và công nghiệp), Kỹ thuật chế biến món ăn, Kế toán, Quản trị kinh doanh, Hướng dẫn du lịch (Việt Nam học), Tiếng Anh thương mại.

Trường tiếp tục xét 2 phương án xét tuyển là xét tuyển học bạ THPT với ngưỡng điểm xét tuyển là điểm tổng kết các năm 10, 11, 12 từ 5 điểm trở lên và xét tuyển từ kết quả thi THPT quốc gia năm 2017 với ngưỡng điểm nhận hồ sơ xét tuyển là 10 điểm với ngưỡng điểm nhận hồ sơ xét tuyển là 15 điểm nhận hồ sơ xét tuyển là 10 điểm cho các khối xét tuyển A, A1, B, D1 và C.

Hệ trung cấp mầm non đã đào tạo rất nhiều những thế hệ giáo viên có mặt ngay cả những nơi xa xôi nhất của tổ quốc

Ngoài ra , năm nay một số trường cũng có sự đổi mới trong công tác đào tạo, tuyển sinh như :
Trường trung cấp Đông Dương

Theo nhiều nhà quản lý giáo dục, học từ trung cấp liên thông đại học đang là lựa chọn của rất nhiều người trẻ hiện nay ở phân khúc giáo viên sư phạm mầm non và sư phạm tiểu học. Nếu như trước đây các bạn chưa có điều kiện để học Đại học chuyên ngành sư phạm mầm non và sư phạm tiểu học, phải chọn con đường trung cấp và dừng lại ở đó thì nay con đường học tập liên thông để nhận bằng Đại học đã trở nên thênh thang hơn lúc nào hết.



Thực tế cũng cho thấy, rất nhiều bạn trẻ thành công với con đường học trung cấp mầm non trước (thời gian đào tạo ngắn) để có việc làm sớm, có thu nhập và kinh nghiệm thực tế sau đó tiếp tục học tập chuyên sâu liên thông đại học để nâng cao bằng cấp với cơ hội thăng tiến và mức lương tốt hơn.

Hình thức đào tạo phù hợp, chương trình đào tạo chuẩn, môi trường học tập hiện đại, cơ hội nghề nghiệp rộng mở là những lý do quan trọng nhất để bạn lựa chọn chương trình liên thông đại học này. Bởi Đại học Sư phạm TP. HCM vẫn luôn là đơn vị hàng đầu trong đào tạo giáo dục, và Trường Trung cấp Đông Dương là thành viên của Tập đoàn Phát triển Giáo dục Quốc tế Đông Dương (IED Group) với hệ thống các trường đào tạo theo mô hình quốc tế từ mầm non cho đến THPT có quy mô lớn. Vì vậy, các bạn sinh viên sẽ có nhiều cơ hội thực hành nghiệp vụ sư phạm tại hệ thống các trường của IED Group. Chương trình liên thông đại học đào tạo đầy đủ được các kỹ năng, kiến thức cho sinh viên

Trường đại học thủ đô tuyển trung cấp mầm non:

Đối với thí sinh tốt nghiệp THPT là 2 năm
Đối với thí sinh chưa có bằng THPT, chỉ có bằng THCS , thời gian đào tạo là 2,5-3 năm
Sinh viên hoàn thành xong sẽ được cấp bằng trung cấp mầm non chuyên nghiệp chính quy của bộ giáo dục và đào tạo sinh viên được học liên thông lên cao đẳng sư phạm trung ương, liên thông đại học. Sinh viên tốt nghiệp khá giỏi sẽ được giới thiệu việc làm trên địa bàn Hà Nội.

Trường cao đẳng sư phạm trung ương Hà Nội:

Thí sinh cần tham gia kì thi THPT quốc gia 2017 tại cụm thi xét tuyển cao đẳng đại học.Thí sinh phải đạt mức điểm tối thiểu bằng điểm đảm bảo chất lượng đầu vào của Bộ Giáo dục quy định và không có điểm nào trong tổ hợp môn xét tuyển thấp hơn 1,0 điểm.Các thí sinh thuộc diện được tuyển thẳng không cần phải đăng kí xét tuyển, chỉ cần làm hồ sơ theo quy định của Bộ Giáo dục. Điểm xét tuyển là tổng điểm các môn thuộc tổ hợp xét tuyển có tính cả hệ số môn chính và điểm ưu tiên.Ngoài ra , Thí sinh xét tuyển theo hình thức này cần tốt nghiệp THPT, hạnh kiểm từ loại khá trở lên. Với những môn xét tuyển thì điểm trung bình phải đạt từ 5,5 điểm. Điểm ưu tiên khu vực và đối tượng được thực hiện theo quy định của Bộ Giáo dục và Đào tạo. Trường còn có mở rộng các khóa liên thông đại học giúp các sinh viên đã có bằng cao đẳng sư phạm trung ương muốn học lên cao

One question?

$
0
0
What are max objects for FS map?

[Include] HMMessages.inc

$
0
0
HoussamMaroc Messages
Image
PHP Code:

Founctions
GameHMTextShowForPlayer
(playerid,text[],time 3000);//Show The Text For The Player And Hide The Message in 3sec '3000'
GameHMTextShowForAll(text[],time 3000 );//Show The Text For All And Hide The Message in 3sec '3000' 


Clear animations when player dies.

$
0
0
Hi guys... i was wondering how can i clear animations when a players dies..

For example i set the anim cs_dead_guy when someone dies... how ti set it directly on death

If you cant understand me ill send a video to you

[PHP,MYSQL] SAMP server control panel

$
0
0
Hello there,
I am offering SA:MP server control panel, it could be used for hostings or just for personal purposes.
It's in Czech language, but i will translate it to English

Control panel contains :
Registration page
Pricing
ToS
Faq
List of hosted servers
Contacts

When you log in, you could see :
Server checker
Online configuration
WebFTP - GM,FS,SF,Plugins
Create Backup
Change of Port, Server version
Chat with other users or only with Admins
Public library of other user scripts
People record on server
Server function like - TOP50, Web RCON, Online Banlist, Online Chat, Online Map
Server and Admins logs

This Control panel also contains VIP which allow you to change port and create own FTP connection

PM if you're interested.

Control panel gallery - http://80.211.199.21/apanl/img.php

[Map] SAMP Scofield Mapping

$
0
0
I do not know how to speak English before all. Sorry. ???

I will present my studies on this subject.

I'm from Turkish.





















https://www.youtube.com/watch?v=z_AJF9ScA3c





T-129 Atak Helikopteri = Turkish Helicopter



My mappings dont want to load.

$
0
0
I have 156k objects mappings all in maps.inc, I defined them properly but it doesnt want to load. No errors, everything works but mappings doesnt load.
#include "../gamemodes/inc/maps.inc"

Bug DestroyDynamic3DTextLabel

$
0
0
Hello, i have a problem in my script with DestroyDynamic3DTextLabel.

When a player die, i create a Dynamic3DTextLabel with [dead] above the player head. But when he respawn (OnPlayerSpawn is called) the Dynamic3DTextLabel doesn't disappear.

Here is my script: https://pastebin.com/8XSxGP1N

[GameMode] xMovie Server (movie-making/map editor/freeroam/minigames - MySQL/IRC/GeoIP/etc)

$
0
0
Long story short:
- If you are only interested in the commands, scroll down to the list.
- xMovie is a mix of freeroam and stunt but mainly for movie making, check my post history for several movies that were posted back in the day.
- Project is available as a git repository in case there are bugs making the game unplayable, other people can push important bug fixes.
- 10 year old project that I haven't maintained for the last 5 years besides removing sensitive data and recompiling, and I will not in the future.
- All important setup instructions can be found in the README.
- 400+ commands including the ones for VIP and admin.
- The project works out of the box (download&play after changing RCON password).
- MySQL database is optional, but recommended for some VIP/admin commands and minigames.
- Has several minigames copchase/nadeball/dm/race/russian roulette, the only minigame I never got to finish is warzone (locked by default)
- IRC, MySQL, GeoIP, DNS, Audio, Streamer, DJson, sscanf2, Whirlpool plugins included.
- Original maps, derbies and races are not included which may make the server look empty upon joining, load your own temporary maps using ingame commands or permanent maps in the gamemode/mapeditor filterscript.

Some other info during this project / Fun facts:
- Project started in 2007, stopped development in 2012.
- Formerly known as Xflo, Rebel and MrPepino.
- SA-MP Beta Tester dugi can be seen in a May 2007 screenshot wearing the [PP] clan tag in public chat (from 10 Years of Samp thread), this project started when I was one of the remaining Power Pimps-clan admins.
- [MOB]finch can also be seen standing in the same screenshot above.
- Originally stunt mode, focus changed to movie making.


Special thanks to (as I remember their names at that time):
- [MOB]finch & [MOB]ReGeX for providing a server and code that helped form the fundamental layer of the project.
- spacemud for providing and maintaining the server post-[MOB].
- [FRAG]B for donating mapping revenue for the server.

Download:
https://gitgud.io/MrPepino/xmovie

README (version at bottom of download page has better formatting):
Code:

List of commands as copied, may not be 100% complete:
General Cmds  -  Description
  /HELP P(LAYER)  -  Player commands
  /HELP V(EHICLE) -  Vehicle commands
  /HELP T(ELEPORT)    -  Teleport commands
  /HELP O(BJECT)  -  Object commands
  /HELP M(ISC)    -  Miscellaneous commands
  /HELP PREMIUM(/VIP/DONATE)  -  Premium commands
  /HELP ADMIN -  Admin commands   

Player Cmds -  Description
  /RULES  -  View the server rules
  /REGISTER  -  Register an account on xmovie
  /LOGIN  -  Login to your account
  /SETPASS    -  Change your password
  /VIPS  -  List online vips
  /ADMINS -  List online admins
  /GOD    -  Enable godmode
  /VGOD  -  Enable godmode for visual damage
  /REPORT -  Report rulebreakers to admins
  /IRC    -  Send messages to IRC
  /PM -  Send a private message to a player
  /R  -  Quickly respond to last private message
  /PMS    -  Block personal messages
  /VIP    -  View benefits of a VIP account
  /S (SKIN)  -  Set your own skin
  /SSEL  -  Scroll through available skins
  /KILL  -  Goodbye, cruel world!
  /WORLD  -  Set your virtual world
  /COLOUR -  Set your player (blip) colour
  /MONEY  -  Set your own money [Rich in Seconds]
  /GROUP  -  Manage group chat options
  /FPS    -  Shows your FPS
  /FPSLIMIT  -  Set your games FPS Limit
  /FI(GHT)    -  Set your fight style
  /ICONS  -  Enable/disable map icons
  /EXIT  -  Leave a minigame in progress
  /DM -  Start a deathmatch
  /SPECDM -  Observe a deathmatch in progress
  /DERBY  -  Start a derby
  /DERBYLIST  -  View the list of derby arenas
  /RR -  Start a game of Russian Roulette
  /SPIN  -  Spin the cylinder in Russian Roullete
  /FIRE  -  Fires your weapon in Russian Roullete
  /COPCHASE  -  Start a cop chase in Russian Roullete
  /NAMEON -  Set nametags on
  /NAMEOFF    -  Set nametags off
  /JUMP  -  Normal jump
  /SJUMP  -  Super jump
  /HJUMP  -  High jump
  /RADIO(2)  -  Toggle the radio on and off
  /OSTICK -  Stick an object to you or your vehicle
  /OSETSTICK  -  Set the position of a sticky object
  /OREPLACE  -  Replace a sticky object with another
  /OUNSTICK  -  Remove a sticky object
  /OSTICKS    -  Open selection mode for a sticky object
  /OSTICKSOFF/ON  -  Toggle sticky objects visibility
  /POSTICK    -  Attach an object to yourself
  /POSETSTICK -  Set the position of an attached object
  /POREPLACE  -  Replace an attached object with another
  /POUNSTICK  -  Remove an attached object
  /POSTICKS  -  Open selection mode for an attached object
  /POSTICKSOFF/ON -  Toggle attached objects visibility
  /NOFIRE -  Remove nearby fire
  /PLAYERS    -  View server statistics
  /AHELP(2)  -  Animations menu
  /PISS  -  Have a wee-wee
  /ACTIONS    -  View a list of possible animations
  /HANDSUP    -  Stick 'em up, pardner
  /STOPANIM  -  Stop your current animation 

Vehicle Cmds    -  Description
  /V (VEHICLE)    -  Spawn a vehicle
  /VX (VEHICLEX)  -  Spawn inside a vehicle
  /CC (CHANGECAR) -  Change your vehicle
  /VDESTROY  -  Destroy a vehicle
  /VSEL  -  Scroll through available vehicle colours
  /TOW    -  Drag a vehicle
  /FIX    -  Replenish your car health to maximum
  /SPRAY  -  Repair your vehicle and visual damage
  /TUNE  -  Tune car
  /NOS    -  Add 10x NOS
  /DELNOS -  Remove NOS
  /EJECT  -  Remove player from car
  /CARCOLOUR  -  Set car colour
  /SETVEH(ICLE)  -  Set vehicle attributes
  /TIRES  -  Pop tyres of your vehicle
  /NUMBERPLATE    -  Customize your numberplate
  /MS (MOVESPEED) -  Speed modification
  /SS (SETSPEED)  -  Set speed power
  /SR (SETROTATION)  -  Set rotation speed
  /PANELS -  Customize your vehicle (wrecked, ...)
  /DOORS  -  Customize your doors (cracked etc..)
  /LIGHTS -  Set status of your vehicle lights
  /L (LOCK)  -  Lock your vehicle
  /UL (UNLOCK)    -  Unlock your vehicle
  /FLIP  -  Reorient your vehicle
  /RAMPS  -  Toggle ramps (use KEY_SPRINT)
  /AF (ANTIFALL)  -  Toggle anti-fall
  /WRECK  -  Destroy your vehicle visually
  /VEHICLES  -  Count vehicles spawned by players
  /VEHICLES2  -  Count ALL vehicles on the server     

Teleport Cmds  -  Description
  /LS -  Teleport to Los Santos
  /SF -  Teleport to San Fierro
  /LV -  Teleport to Las Venturas
  /GOTO  -  Teleport to another player
  /ITELEPORTS -  Teleports to interior places
  /BURG  -  Teleports to house interiors
  /GOV    -  Teleports to government buildings
  /GIRL  -  Teleports to CJ girlfriend's buildings
  /GYM    -  List of gym interiors
  /STRIP  -  List of strip club interiors
  /POL    -  List of police interiors
  /SPAWN  -  Set your spawn location(s)
  /LOADPOS    -  Load spawn location
  /UNSET  -  Unset spawn location(s)
  /SETSPAWN  -  Change default spawn location
  /SETLOC -  Set your position with coordinates   

Object Cmds -  Description
  /CM (CREATEMAP) -  Create a map
  /LM (LOADMAP)  -  Load a map
  /UNLOADMAP  -  Unload a map
  /VLM (VLOADMAP) -  Load a map in view-only mode
  /VUNLOADMAP -  Unload a map in view only mode
  /EM (EDITMAP)  -  Edit an existing map
  /EMQ (EDITMAPQ) -  Stop editing a map
  /MAPPASS    -  Change the password of a map
  /VIEWPASS  -  View the map password
  /MH (MAPHELP)  -  Invite a player for mapping assistance
  /OC (OCREATE)  -  Create an object
  /OD (ODESTROY)  -  Destroy an object
  /OE (OEDIT) -  Edit an existing object
  /OS (OSAVE) -  Save the current object
  /OX -  Move the object in the x-axis
  /OY -  Move the object in the y-axis
  /OZ -  Move the object in the z-axis
  /RX -  Rotate an object along its x-axis
  /RY -  Rotate an object along its y-axis
  /RZ -  Rotate an object along its z-axis
  /GO -  Teleport to a map object
  /OSELECT    -  Open selection mode for a map object
  /OCHANGE    -  Replace an object with another model
  /OBJECTS    -  Count all the objects on the server 

Misc Cmds  -  Description
  /TEST  -  Are you still connected to the server?
  /JETPACK    -  Spawn a jetpack
  /FLY    -  First-person camera control
  /CSEL  -  Scroll through camera angles
  /W (WEATHER)    -  Set your own weather
  /T (TIME)  -  Scroll through available weathers
  /WSEL  -  Set your own time
  /W2 (WEAPON)    -  Spawn a weapon
  /AFK    -  Teleports you to the AFK tower
  /BACK  -  Removes you from the AFK tower
  /AFKLIST    -  Lists players who are AFK
  /DRUNK  -  Set your drunk level
  /LSD    -  Get HIGH AS FUCK
  /VOTE  -  Vote in a poll
  /HEALTH -  Replenish your health to maximum
  /ARMOUR -  Replenish your armour to maximum
  /ME -  Do and action from the third person
  /BU (BUBBLE)    -  Display hovering text to other players
  /SPE (SPECIAL)  -  View a list of special animations
  /REMOVE -  Disarm yourself of weapons
  /F  -  Freeze your character in position
  /UF -  Unfreeze your character
  /GI (GETINFO)  -  Get information about a player
  /SPEC  -  Observe a player from their perspective
  /RUN    -  List of running styles
  /SKATE  -  Enable skating
  /SWIM  -  Enable swimming
  /TURNGOTO  -  Toggle allowing players to /goto you
  /SKILL  -  Set weapon skill
  /SOUND  -  Play a background song
  /RADIOOFF  -  Disable radio streaming
  /NEWS  -  View latest news
  /LISTENERS(2)  -  View radio listeners
  /JOIN  -  Join the announced race
  /LEAVE  -  Leave the current race
  /READY  -  Player is ready to start.
  /JAILLIST  -  View current jail inmates   

Premium Cmds    -  Description
  /SKIPACLEAR -  Skip automatic clear system
  /ACLEAR -  Clear all objects, vehicles, maps, jetpacks
  /JCLEAR -  Clear all jetpacks
  /VCLEAR -  Clear all vehicles (ALWAYS VOTE!)
  /VECLEAR    -  Clear all empty vehicles (ALWAYS VOTE!)
  /OCLEAR -  Clear all loaded maps (ALWAYS VOTE!)
  /VLIGHTS (DAYTIME)  -  Enable flashing vehicle lights
  /PCOLOUR    -  Set the colour of your text
  /BU2 (BUBBLE2)  -  Display hovering text with expire time
  /LA (LABEL) -  Create a label with text
  /BRING  -  Bring a player to you (ALWAYS ASK!)
  /STREW  -  Drive on floating roads, woo!
  /PAPC  -  Changes your name's colour
  /PACC  -  Changes your vehicle's colour
  /APC    -  Changes player colours server-wide
  /ACC    -  Changes vehicle colours server-wide
  /ODROP  -  Drops an object on someone
  /COUNTDOWN  -  Countdown
  /REMOVESTICK    -  Remove someones osticks (abusers)
  /COPYSTICK  -  Copy another player's (p)osticks
  /SETSKIN    -  Set a player's skin
  /GIVEMONEY  -  Give a player money
  /SETMONEY  -  Set a player's money amount
  /VBEACH -  Load the VIP beach map
  /MAP    -  Manage map-object
  /OBJECT -  Manage any server-object
  /SC -  Save your current vehicle
  /SP -  Bring your saved vehicle
  /RACEHELP  -  Read more about loading races
  /BUILDHELP  -  Read more about building races
  /BUILDRACE  -  Start building a new race (suprising!)
  /CP -  Add a checkpoint
  /SCP    -  Select a checkpoint
  /RCP    -  Replace the current checkpoint
  /MCP    -  Move the selected checkpoint
  /DCP    -  Delete the selected waypoint
  /CLEARRACE  -  Clear the current (new) race.
  /EDITRACE  -  Load an existing race
  /SAVERACE  -  Save the checkpoints to a file
  /SETLAPS    -  Set amount of laps to drive
  /RACEMODE  -  Set the current racemode
  /LOADRACE  -  Load a race from file
  /STARTRACE  -  Start a loaded race
  /ENDRACE    -  Complete the current race
  /BESTLAP    -  Display best lap time for the race
  /BESTRACE  -  Display best race time for the race
  /DELETERACE -  Remove the race from disk
  /AIRRACE    -  Change checkpoints to air-mode
  /CPSIZE -  Changes the checkpoint size
  /PRIZEMODE  -  Set the prize mode of a race
  /SETPRIZE  -  Set the prize of a race 

Admin Cmds  -  Description
  level 1
  /VMDESTROY  -  Destroy all vehicles of a model
  /OSEL  -  Scroll through available objects
  /CLOGIN -  Login as clone from an admin account
  /CLOGOUT    -  Logout of
  /MAPINFO    -  Get information about a map
  /MAPS  -  View maps currently loaded
  /AHUT  -  Load the admin hut map
  /AAIRPORT  -  Load the admin airport map
  /AMANSION  -  Load the admin mansion map
  /GETID  -  Get object attributes from your map
  /SETCOLOURS -  Toggle usage of /pcolour
  /RESETANDROMADA -  Reset the Andromada entry checkpoint
  /RESETRR    -  Reset the Russian Roulette minigame
  /RESETDERBY -  Reset the Derby minigame
  /RESETGROUP -  Reset all group chats
  /RESETCC    -  Reset the Copchase minigame
  /SETT (SETTIME) -  Set time of server for all players
  /SETW (SETWEATHER  -  Set weather of server for all players
  /SLAP  -  Slap a player like a bitch
  /HIDE  -  Toggle visibility of your admin status
  /SAY    -  Talk as an admin
  /ANNOUNCE  -  Announce something to all players
  /WARN  -  Warn a player for rulebreaking
  /GOTOSEAT  -  Teleport into somebody's vehicle
  /MINIGUNS  -  List all players with a minigun
  /CLEAR  -  Clear the chatbox
  /TOGGLEMSG  -  Toggle admin messages
  /GIVEWEAPON -  Give a weapon to a play
  /PANNOUNCE  -  Announce to a specific player
  /CANNOUNCE  -  Announce to players without group
  /ADVERT -  Advert message in the text chat
  level 2
  /SETINTERIOR    -  Set a player's interior
  /FREEZE -  Freeze a player
  /UNFREEZE  -  Unfreeze a player
  /JAIL  -  Jail a player
  /UNJAIL -  Unjail a player
  /MUTE  -  Mute a player or global chat
  /UNMUTE -  Unmute a player or global chat
  /KNIFE  -  Knife a player
  /UNLOCKALL  -  Unlock a specific vehicle or all vehicles
  /KICK  -  Kick a player from the server
  /DISARM -  Remove all weapons from a player
  /SETWORLD  -  Set a player's world
  /FORCESPAWN -  Force a player to spawn
  /FORCECLASS -  Force a player to class selection
  level 3
  /FORCEMAP  -  Force a map to unload
  /ASAY  -  Print a message to the chatbox
  /SETHEALTH  -  Set a player's health
  /SETARMOUR  -  Set a player's armour
  /CARHEALTH  -  Set the damage level of a player's car
  /SETGOD -  Toggle server-wide /god
  /JOINCREW  -  Join a group without an invite
  /LEAVECREW  -  Leave a group
  /STRIKE -  Strike a player with lightning
  /CW (CLEARWARNINGS) -  Remove a player's warnings
  /AKILL  -  Kill a player
  /EXPLODE    -  BOOM
  /BIGBANG    -  BOOM x2
  /FORCESAY  -  Force a player to say something
  /FORCEIRC  -  Force an IRC user to say something
  /BLOCK  -  Block a player's commands
  /UNBLOCK    -  Unblock a player's commands
  /BAN    -  Ban a player from the server
  /INFO  -  Get connection information for a player
  /IPMATCH    -  Search for names matching an IP
  /SETTAGS    -  Block a player's commands
  /SETGOTO    -  Unblock a player's commands
  /SETCHAT    -  Ban a player from the server
  /AEJECT -  Get connection information for a player
  /HOSTMATCH  -  Search for names matching an IP
  /NAMEMATCH  -  Search for names [begins with name]
  /NAMEMATCH2 -  Search for names [contains name]
  level 4
  /CONVERT    -  Convert and export a map
  /CLEARMAP  -  Empty all objects from a map
  /SETMAP -  Set your map
  /MYMAP  -  Get your map's ID
  /EARTHQUAKE -  APOCALYPSE 2012
  /PILL  -  A dose of happiness
  /SETG (SETGRAVITY)  -  Set server-wide gravity
  /SETDRUNK  -  Set server-wide drunk level
  /BIGBANG2  -  BOOM x2
  /PWN    -  Block, mute and jail a player
  /UNPWN  -  Unblock, unmute and unjail a player
  /FORCECMD  -  Force a player to do a command
  /FORCEANIM  -  Force a looped animation on a player
  /FORCESANIM -  Force a player to do an animation
  /FORCESEAT  -  Force a player into your vehicle
  /FORCEPOSTICK  -  Force a player to apply a postick
  /FORCEPOSTICK2  -  Force postick on players within range
  /GMX    -  Restart the gamemode
  /POO    -  Magic based excretion
  /SETNAME    -  Set a player's name
  /PLAY  -  Play an URL stream to xAudio listeners
  /PAUSE  -  Pause the URL stream on xAudio
  /RESUME -  Resume the URL stream on xAudio
  /SPLAY  -  Stop the URL stream to xAudio listeners
  /FSETNAME  -  Fake-disconnect and change name
  /MOTD  -  Message Of The Day
  /ADDTELE    -  Add a new teleportation for ptele
  /DERBYHELP  -  Read information regarding the derby
  /ADDDERBY  -  Add a new derby to the database
  /SETDVEH    -  Set the vehicle for a derby
  /SETDMODE  -  Set the play mode of a derby
  /SETDHEIGHT -  Set the fall-off height for a derby
  /SETDSPAWN  -  Set a spawn for a derby
  /SETDCENTER -  Set the center of a map for a derby
  /SETDMAP    -  Set a map for a derby
  /DELDSPAWN  -  Delete a spawn in derby
  /SETEVENTS  -  Disable server-wide events
  /LOCKEVENT  -  Lock server-wide events for non-vips
  /FORCECMDB  -  Force a bot to perform a command
  /FORCEANIMB -  Force a looped animation on bots
  /FORCESANIMB    -  Force a bot to perform an animation
  /FORCEDEATH -  Force a player to "die"
  /PLAY2  -  Stream audio over SA-MP
  level 5
  /FLASH  -  WTF IS HAPPENING
  /SETVIP -  Promote a player to VIP
  /REMOVEVIP  -  Demote a VIP to player
  /SETADMIN  -  Promote a player or VIP to admin
  /REMOVEADMIN    -  Demote an admin to player
  /SETLEVEL  -  Set an admin's admin level
  /CONNECT    -  Connect a bot to the server
  /ANN    -  Announce a message below screen
  /ANNSTOP    -  Stop the announcement
  /CRX    -  Crash a player
  /DELTELE    -  Delete a teleportation
  /DELDERBY  -  Delete a derby
  /SGOTO  -  Silently teleport to a player
  /MYSQL  -  Reconnect database

IRC Cmds
  !MSG
  !PLAYERS
  !VA
  !SERVER
  !UPTIME
  !V
  !PM
  !MEMO
  !COUNTRIES
  !GAY
  !MATCH
  !GREASY
  !OWNED
  !FAIL
  !SAY
  !A
  !ANNOUNCE
  !SLAP
  !KILL
  !EXPLODE
  !FAKEMSG
  !FAKEIRC
  !INFO
  !IPMATCH
  !HOSTMATCH
  !NAMEMATCH
  !NAMEMATCH2
  !KICK
  !BAN
  !STFU
  !BANIP
  !UNBANIP
  !BANHOST
  !UNBANHOST
  !SETNAME
  !ASAY
  !ECHO
  !PLAY
  !SPLAY
  !PAUSE
  !RESUME
  !RCON
  !IDENTIFY
  !RAW

Code:

xMovie Server (SA-MP)
This project is about 10 years old by now, but has not been maintained for 5 years. The source files from 0.3e were only modified to get rid of sensitive data and recompiled to work with 0.3.7-R2. I can gladly say the gamemode has been quite a success in those years. As a fan of open source projects, I have finally decided to publish the server files for people to fiddle with before they are lost forever.

Installation:
1. Download a zipped copy or clone the repository.
2. Extract project locally and/or copy the necessary files to your own existing server.
3. Configure server.cfg accordingly (RCON password, etc).
4. Run server.

Optional but recommended:
- MySQL database required for storing certain data (player/VIP/admin accounts, player history, preferences, account-/ip-/hostbans, custom teleports, chat ads, server statistics, warzone minigame and IRC memo's). ¹ ²
- Keep the IRC filterscript loaded for optimal use of all admin commands, even if you do not use IRC (loads but doesn't connect to IRC server). ³

¹ For local servers:
1. Install XAMPP to run a local MySQL server.
2. Start Apache and MySQL services in XAMPP.
3. Open phpMyAdmin (MySQL Admin) > Import > browse to import_database_structure.sql in project > Go.
4. Leave MySQL login credentials as they are in the scripts.

² For public servers:
1. You are assumed to already have a working MySQL server.
2. Open phpMyAdmin (MySQL Admin) > Import > browse to import_database_structure.sql in project > Go.
3. Adjust MySQL login credentials in IRC filterscript and gamemode (ctrl+f MYSQL_IP).

³ For IRC functionality:
- Adjust IRC login and channel credentials in IRC filterscript and gamemode (ctrl+f IRC_SERVER, IRC_CHANNEL), otherwise leave as they are.

Notes:
- RCON login will grant you admin level 5 access, set 6 (highest configured) manually in database if needed.
- Original maps, derbies and races are not included. These can be added using ingame commands.
- You will certainly come across poor coding practices from my time as a newbie to PAWN, adding new things were
- given a higher priority over improvement  because it simply already worked.

The following plugins are included:
- Streamer Plugin v2.9.1 - Incognito (http://forum.sa-mp.com/showthread.php?t=102865)
- DJson v1.6.2 - DracoBlue (http://forum.sa-mp.com/showthread.php?t=48439)
- IRC Plugin v1.4.8 Non-SSL - Incognito (http://forum.sa-mp.com/showthread.php?t=98803)
- sscanf2 v2.8.2 - Y_Less (Emmet_ & maddinat0r fix) (http://forum.sa-mp.com/showthread.php?t=602923)
- MySQL R7 - BlueG (http://forum.sa-mp.com/showthread.php?t=56564 - redownload for other distr than Ubuntu)
- Audio Plugin v0.5 R2 - Incognito (http://forum.sa-mp.com/showthread.php?t=82162)
- GeoIP Plugin v0.1.4 - Totto8492 (http://forum.sa-mp.com/showthread.php?t=32509)
- DNS Plugin v2.4 - Incognito (http://forum.sa-mp.com/showthread.php?t=75605)
- Whirlpool - Y_Less (http://forum.sa-mp.com/showthread.php?t=570945)

SetTimer problem

$
0
0
Hello everybody, before I start, I want to say "Sorry for my english" :)

So, I use an old version of sa-mp (such as sa-mp 0.3e, u2-mp 0.3e ), and I faced a problem connected with SetTimer
Here is code:

Code:

forward TestTimer();
public TestTimer()
{
      for(new i; i < MAX_PLAYERS; i++)
    {
          //here's empty ('cause it's test)
    }
      print("1");
      return 1;
}

After that I create timer

Code:

public OnGameModeInit()
{
      //gamemodetext bla... bla... bla...
      SetTimer("TestTimer", 1000, 1); // Here's you can clearly see that timer 1 sec + repeating
}

But I faced with the problem. As you have seen it must print("1"); just one time per second, but it print it twice per second

http://imgur.com/a/3iWNQ <- 1 second it print double "1", but in TestTimer I only print 1.

Heeeelllpppp friends
---------------------------[ OFFTOP ]---------------------------------
Again sorry for my english, but it makes me feel so f***ing cool, that know english a bit, and can speak. I always try to up my skill. )

Help

$
0
0
Quote:

CMD:additem(playerid,params[])
{
new items[32], slotid;
for(new i =0;i<MAX_BOXS;i++)
{
if(IsPlayerInRangeOfPoint(playerid,2,BoxInfo[i][xPos],BoxInfo[i][yPos],BoxInfo[i][zPos]))
{
if(sscanf(params, "us[32]",items,slotid)) return SCM(playerid, COLOR_WHITE, " /additem [ item ] [ slot ] ");
if(strcmp(items, "burger", true))
{
if(PlayerHasItem(playerid,"Burger"))
{
BoxInfo[i][Item][slotid] = BurgerItem;
RemoveItem(playerid,"Burger",1);
PlayerInfo[playerid][pSlotu] --;
}
else{SCM(playerid,COLOR_RED,"You don't have Burger");}
return 1;
}
else if(strcmp(items, "pizza", true))
{
if(PlayerHasItem(playerid,"Pizza"))
{
BoxInfo[i][Item][slotid] = PizzaItem;
RemoveItem(playerid,"Pizza",1);
PlayerInfo[playerid][pSlotu] --;
}
else{SCM(playerid,COLOR_RED,"You don't have Pizza");}
return 1;
}
SaveThisBox(i);
}
}
return 1;
}
it doesn’t work, please help me

[GRAND OPENING] United Roleplay [v2.0] [REALISTIC]

$
0
0



Information
IP: server.unitedroleplay.com | UCP: ucp.unitedroleplay.com
TeamSpeak3: ts3.unitedroleplay.com | Website: http://www.unitedroleplay.com

About us
We are using a great script created by Emmet_, although the script has most of the features from United Roleplay v1.0 which closed down due to the lack of community effort and development. We are back with United Roleplay v2.0 we're hoping to create a community which will provide a friendly environment.

Why us?
When you join United Roleplay you are introduced to an enviorment of great roleplay, a friendly community and loyalty. We are dedicated to our community and make sure community comes first always.

Other
http://imgur.com/a/guzCv

Ryder Race small help.

$
0
0
Hi guys,

It might be a problem for me as i am not a even good coder, so i'l looking for help from a good coders. I won't call this a problem, just a small fix. I'm using Ryder race system, and there is a record system made for many persons but i want only one person can broke a record.

I'll looks like this when a record i made/broken (Check below). So, this race system saving a 5 persons with broken record (I want it be only for one person not 5)

Now it looks like this:

Code:

BestRacerTime_0=23614
BestRacer_0=Hunud
BestRacerTime_1=0
BestRacer_1=noone
BestRacerTime_2=0
BestRacer_2=noone
BestRacerTime_3=0
BestRacer_3=noone
BestRacerTime_4=0
BestRacer_4=noone

But i want it to be like this. Only one record saved from 1 person

Code:

BestRacerTime_0=23614
BestRacer_0=Hunud

CODES:

Code:

public OnPlayerEnterRaceCheckpoint(playerid)
{
        if(CPProgess[playerid] == TotalCP -1)
        {
                new
                    TimeStamp,
                    TotalRaceTime,
                    string[256],
                    rFile[256],
                    pName[MAX_PLAYER_NAME],
                        rTime[3],
                        Prize[2],
                        TempTotalTime,
                        TempTime[3]
                ;
                Position++;
                GetPlayerName(playerid, pName, sizeof(pName));
                TimeStamp = GetTickCount();
                TotalRaceTime = TimeStamp - RaceTick;
                ConvertTime(var, TotalRaceTime, rTime[0], rTime[1], rTime[2]);
                switch(Position)
                {
                    case 1: Prize[0] = (random(random(5000)) + 10000), Prize[1] = 10;
                    case 2: Prize[0] = (random(random(4500)) + 9000), Prize[1] = 9;
                    case 3: Prize[0] = (random(random(4000)) + 8000), Prize[1] = 8;
                    case 4: Prize[0] = (random(random(3500)) + 7000), Prize[1] = 7;
                    case 5: Prize[0] = (random(random(3000)) + 6000), Prize[1] = 6;
                    case 6: Prize[0] = (random(random(2500)) + 5000), Prize[1] = 5;
                    case 7: Prize[0] = (random(random(2000)) + 4000), Prize[1] = 4;
                    case 8: Prize[0] = (random(random(1500)) + 3000), Prize[1] = 3;
                    case 9: Prize[0] = (random(random(1000)) + 2000), Prize[1] = 2;
                    default: Prize[0] = random(random(1000)), Prize[1] = 1;
                }
                format(string, sizeof(string), ">> \"%s\" has finished the race in position \"%d\".", pName, Position);
                SendClientMessageToAll(WHITE, string);
                format(string, sizeof(string), "    - Time: \"%d:%d.%d\".", rTime[0], rTime[1], rTime[2]);
                SendClientMessageToAll(WHITE, string);
                format(string, sizeof(string), "    - Prize: \"$%d and +%d Score\".", Prize[0], Prize[1]);
                SendClientMessageToAll(WHITE, string);
               
                if(FinishCount <= 5)
                {
                        format(rFile, sizeof(rFile), "/rRaceSystem/%s.RRACE", RaceName);
                    format(string, sizeof(string), "BestRacerTime_%d", TimeProgress);
                    TempTotalTime = dini_Int(rFile, string);
                    ConvertTime(var1, TempTotalTime, TempTime[0], TempTime[1], TempTime[2]);
                    if(TotalRaceTime <= dini_Int(rFile, string) || TempTotalTime == 0)
                    {
                        dini_IntSet(rFile, string, TotalRaceTime);
                                format(string, sizeof(string), "BestRacer_%d", TimeProgress);
                        if(TempTotalTime != 0) format(string, sizeof(string), ">> \"%s\" has broken the record of \"%s\" with \"%d\" seconds faster on the \"%d\"'st/th place!", pName, dini_Get(rFile, string), -(rTime[1] - TempTime[1]), TimeProgress+1);
                                        else format(string, sizeof(string), ">> \"%s\" has broken a new record of on the \"%d\"'st/th place!", pName, TimeProgress+1);
                SendClientMessageToAll(GREEN, "  ");
                                SendClientMessageToAll(GREEN, string);
                                SendClientMessageToAll(GREEN, "  ");
                                format(string, sizeof(string), "BestRacer_%d", TimeProgress);
                                dini_Set(rFile, string, pName);
                                TimeProgress++;
                    }
                }
                FinishCount++;
                GivePlayerMoney(playerid, Prize[0]);
                SetPlayerScore(playerid, GetPlayerScore(playerid) + Prize[1]);
                DisablePlayerRaceCheckpoint(playerid);
                CPProgess[playerid]++;
                if(FinishCount >= JoinCount) return StopRace();
    }
        else
        {
                CPProgess[playerid]++;
                CPCoords[CPProgess[playerid]][3]++;
                RacePosition[playerid] = floatround(CPCoords[CPProgess[playerid]][3], floatround_floor);
            SetCP(playerid, CPProgess[playerid], CPProgess[playerid]+1, TotalCP, RaceType);
            PlayerPlaySound(playerid, 1137, 0.0, 0.0, 0.0);
        }
    return 1;
}

Code:

        if(newkeys & KEY_SECONDARY_ATTACK)
        {
            if(BuildTakeCheckpoints == true)
            {
                ShowDialog(playerid, 606);
                        format(rNameFile, sizeof(rNameFile), "/rRaceSystem/RaceNames/RaceNames.txt");
                        TotalRaces = dini_Int(rNameFile, "TotalRaces");
                        TotalRaces++;
                        dini_IntSet(rNameFile, "TotalRaces", TotalRaces);
                        format(string, sizeof(string), "Race_%d", TotalRaces-1);
                        format(rFile, sizeof(rFile), "/rRaceSystem/%s.RRACE", BuildName);
                        dini_Set(rNameFile, string, BuildName);
                        dini_IntSet(rFile, "TotalCP", BuildCheckPointCount);
                        Loop(x, 5)
                        {
                                format(string, sizeof(string), "BestRacerTime_%d", x);
                                dini_Set(rFile, string, "0");
                                format(string, sizeof(string), "BestRacer_%d", x);
                                dini_Set(rFile, string, "noone");
                        }
            }
        }
        return 1;
}

I hope you will help me. I'll reward a person/s with cookie(REP) who will solved this "problem" Thanks

[Pedido] Guardar e descartar armas no inventário

$
0
0
Olá eu não sei como fazer para guardar além dos itens (que da pra guardar), fazer para guardar e descartar armas no inventário.

FUNÇÃO QUE DESCARTA OS ITENS
Code:

if(playertextid == invText[playerid][14])
{
    new str[180];
    if(InventarioInfo[playerid][ItemSelecionado[playerid]][iSlot] == 19382){

        SendClientMessage(playerid, 0xFF6347AA, "* Não há itens suficientes para ser descartado!");

        for(new i = 7; i < 16; i++){

            PlayerTextDrawHide(playerid, invText[playerid][i]);
        }
        BoxAberto[playerid] = 0;
        return 1;
    }
    format(str, 280, "* Você largou um item: %s, com %d unidade(s)",
    NomeItemInv(InventarioInfo[playerid][ItemSelecionado[playerid]][iSlot]), InventarioInfo[playerid][ItemSelecionado[playerid]][iUnidades]);
    SendClientMessage(playerid, 0x00ccccFF, str);
    new Float:pos[3];//cria uma array para armazenar a posição X, Y e Z do jogador
        GetPlayerPos(playerid, pos[0], pos[1], pos[2]);//armazena na variável pos a posição do jogador
        CreateDroppedItem(InventarioInfo[playerid][ItemSelecionado[playerid]][iSlot], InventarioInfo[playerid][ItemSelecionado[playerid]][iUnidades], pos[0], pos[1], pos[2] - 0.9);
    for(new i = 0; i != 16; i++)
        {
            PlayerTextDrawHide(playerid, invText[playerid][i]);
        }
    for(new i; i != 75; i++)
        {
            PlayerTextDrawHide(playerid, invPreview[playerid][i]);
            PlayerTextDrawHide(playerid, invName[playerid][i]);
        }
        BoxAberto[playerid] = 0;
        InventarioInfo[playerid][ItemSelecionado[playerid]][iSlot] = 19382;
    InventarioInfo[playerid][ItemSelecionado[playerid]][iUnidades] = 0;
    AbrirInventario(playerid);
}

FUNÇÃO QUE MOSTRA AS ARMAS E OS ITENS NO CHÃO
Code:

for(new a = 0; a < MAX_OBJ; a++)
                        {
                            if(IsPlayerInRangeOfPoint(i, 1.8, dGunData[a][ObjPos][0], dGunData[a][ObjPos][1], dGunData[a][ObjPos][2]) && dGunData[a][ObjPos][0] != 0)
                            {
                                new Str[73];

                                format(Str, sizeof Str, "Uma %s com %d balas", GunNames[dGunData[a][ObjData][0]], dGunData[a][ObjData][1]);
                                PlayerTextDrawSetString(i, DropTextdraw5[i], Str);

                                        TextDrawShowForPlayer(i, DropTextdraw0);
                                        TextDrawShowForPlayer(i, DropTextdraw1);
                                        TextDrawShowForPlayer(i, DropTextdraw2);
                                        TextDrawShowForPlayer(i, DropTextdraw3);
                                        TextDrawShowForPlayer(i, DropTextdraw4);
                                        PlayerTextDrawShow(i, DropTextdraw5[i]);
                                      break;
                            }
                            if(IsPlayerInRangeOfPoint(i, 1.8, dItemData[a][ObjtPos][0], dItemData[a][ObjtPos][1], dItemData[a][ObjtPos][2]) && dItemData[a][ObjtPos][0] != 0)
                            {
                                new Str[73];

                                format(Str, sizeof Str, "%s com %d unidade(s)", NomeItemInv(dItemData[a][ObjtData][0]), dItemData[a][ObjtData][1]);
                                PlayerTextDrawSetString(i, DropTextdraw5[i], Str);

                                        TextDrawShowForPlayer(i, DropTextdraw0);
                                        TextDrawShowForPlayer(i, DropTextdraw1);
                                        TextDrawShowForPlayer(i, DropTextdraw2);
                                        TextDrawShowForPlayer(i, DropTextdraw3);
                                        TextDrawShowForPlayer(i, DropTextdraw4);
                                        PlayerTextDrawShow(i, DropTextdraw5[i]);
                                      break;
                            }
                        }

stock DA LISTA DE ITENS DO INVENTÁRIO E TEM ali uma linha que diz, se for arma

//if(idx >= 331 && idx < 372) format( nomedoitem, 50, GunNames(idx)); // se for arma

Code:

stock NomeItemInv(idx)
{
        new nomedoitem[100];
        //format( nomedoitem, 100, "Desconhecido");



        //if(idx >= 331 && idx < 372) format( nomedoitem, 50, GunNames(idx)); // se for arma

    //if(idx == 0) format( nomedoitem, 50, "Desconhecido");
        if(idx == 19941) format( nomedoitem, 50, "Respeito");
        if(idx == 1212) format( nomedoitem, 50, "Dinheiro");
        if(idx == 1650) format( nomedoitem, 50, "Gasolina");
        if(idx == 2226) format( nomedoitem, 50, "Radio Portatil");
        if(idx == 18976) format( nomedoitem, 50, "Capacete");
        if(idx == 980) format( nomedoitem, 50, "Portao");
        if(idx == 11738) format( nomedoitem, 50, "Remedio pequeno");
        if(idx == 11739) format( nomedoitem, 50, "Remedio Normal");
        if(idx == 11736) format( nomedoitem, 50, "MedKit");
        if(idx == 1271) format( nomedoitem, 50, "Caixa de Itens");
        if(idx == 19570) format( nomedoitem, 50, "Garrafa d'Agua");
        if(idx == 1581) format( nomedoitem, 50, "Titulo Personalizado");

        if(idx == 2881) format( nomedoitem, 50, "Pizza");
        if(idx == 2768) format( nomedoitem, 50, "Hamburguer");
        if(idx == 19562) format( nomedoitem, 50, "Cereal");

        if(idx == 19054) format( nomedoitem, 50, "Caixa Supresa Pequena");
        if(idx == 19055) format( nomedoitem, 50, "Caixa Supresa Media");
        if(idx == 19056) format( nomedoitem, 50, "Caixa Supresa Grande");
        if(idx == 19057) format( nomedoitem, 50, "Caixa Supresa Platina");

        if(idx == 370) format( nomedoitem, 50, "JetPack");
        if(idx == 1609) format( nomedoitem, 50, "Tartaruga");

                //itens
        if(idx == 19317) format( nomedoitem, 50, "Guitarra");
        if(idx == 19319) format( nomedoitem, 50, "Guitarra");
        if(idx == 19094) format( nomedoitem, 50, "Item Raro");
        if(idx == 18974) format( nomedoitem, 50, "Item Raro");
        if(idx == 19142) format( nomedoitem, 50, "Colete");
        if(idx == 19555) format( nomedoitem, 50, "Luva esquerda");
        if(idx == 19556) format( nomedoitem, 50, "Luva direita");
        if(idx == 1736) format( nomedoitem, 50, "Cabeca de touro");
        if(idx == 2052) format( nomedoitem, 50, "CJ Tommy Hat");
        if(idx == 2053) format( nomedoitem, 50, "CJ Jerry Hat");
        if(idx == 2114) format( nomedoitem, 50, "Bola de Basquete");
        if(idx == 6865) format( nomedoitem, 50, "Cabeça de cervo");
        if(idx == 3528) format( nomedoitem, 50, "Cabeca de dragao");
        if(idx == 1262) format( nomedoitem, 50, "Cabeca de semaforo");
        if(idx == 19067) format( nomedoitem, 50, "Bandana gangster");
        if(idx == 19136) format( nomedoitem, 50, "Oculos e cabelo");
        if(idx == 19320) format( nomedoitem, 50, "Cabeca de abobora");
        if(idx == 19348) format( nomedoitem, 50, "Bengala");
        if(idx == 19042) format( nomedoitem, 50, "Relogio de ouro");
        if(idx == 19528) format( nomedoitem, 50, "Chapeu de bruxa");
        if(idx == 19527) format( nomedoitem, 50, "Caldeirao");
        if(idx == 19557) format( nomedoitem, 50, "Mascara Stripp");
        if(idx == 11704) format( nomedoitem, 50, "Mascara DEMON");
        if(idx == 954) format( nomedoitem, 50, "Ferradura");
        if(idx == 1247) format( nomedoitem, 50, "Estrela");
        if(idx == 1274) format( nomedoitem, 50, "Sifrao");
        if(idx == 2918) format( nomedoitem, 50, "Bola aquatica");
        if(idx == 19121) format( nomedoitem, 50, "Luz Branca");
        if(idx == 19122) format( nomedoitem, 50, "Luz Azul");
        if(idx == 19123) format( nomedoitem, 50, "Luz Verde");
        if(idx == 19124) format( nomedoitem, 50, "Luz Vermelha");
        if(idx == 19125) format( nomedoitem, 50, "Luz Amarela");
        if(idx == 19126) format( nomedoitem, 50, "Luz Azul Bebe");
        if(idx == 19127) format( nomedoitem, 50, "Luz Roxa");


        if(idx == 2894) format( nomedoitem, 50, "Contrato Hospitalar");
       
        if(idx == 19382) format( nomedoitem, 50, "Nenhum Item");
        if(idx >= 0 && idx < 312 ) format( nomedoitem, 50, "Skin %d",idx); // se for skin
        //if(idx > 399 && idx < 612 ) format( nomedoitem, 50, "%s",VehicleNames[idx - 400]); //  se for veiculo

        return nomedoitem;
}

COMANDO QUE PEGA AS ARMAS, JA TA PRONTINHO
Code:

CMD:parma(playerid)
    {
        if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return 1;
        new f = MAX_OBJ+1;
                for(new a = 0; a < MAX_OBJ; a++)
                {
                    if(IsPlayerInRangeOfPoint(playerid, 1.8, dGunData[a][ObjPos][0], dGunData[a][ObjPos][1], dGunData[a][ObjPos][2]))
                    {
                        f = a;
                        break;
                    }
                }
                if(f > MAX_OBJ) return 1;
               
                if(gettime() < GetPVarInt(playerid, #VarFlood8))
                    return 1;
                SetPVarInt(playerid, #VarFlood8, gettime()+2);

        GivePlayerWeapon(playerid, dGunData[f][ObjData][0], dGunData[f][ObjData][1]);

        DestroyDroppedObject(f);
       
        ApplyAnimation(playerid,"BOMBER","BOM_Plant_2Idle",4.1,0,1,1,0,0);

                new buffer[85];
                format(buffer, sizeof(buffer), "Você pegou um(a) %s.", GunNames[dGunData[f][ObjData][0]]);
                  SendClientMessage(playerid, 0x33AA3300, buffer);
                 
                format(buffer, sizeof(buffer), "*%s pegou um(a) %s do chão.", NomePlayer(playerid), GunNames[dGunData[f][ObjData][0]]);
                SendClientMessageInRange(30.0, playerid, buffer, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                printf("%s", buffer);
                  return 1;
    }

Code:

stock CreateDroppedGun(GunID, GunAmmo, Float:gPosX, Float:gPosY, Float:gPosZ)
{
        new f = MAX_OBJ+1;
    for(new a = 0; a < MAX_OBJ; a++)
    {
        if(dGunData[a][ObjPos][0] == 0.0)
        {
            f = a;
            break;
        }
    }
    if(f > MAX_OBJ) return;
   
    dGunData[f][dropTimer] = gettime() + (30*60);//30 minutos para a arma desaparecer
   
    dGunData[f][ObjData][0] = GunID;
        dGunData[f][ObjData][1] = GunAmmo;
        dGunData[f][ObjPos][0] = gPosX;
        dGunData[f][ObjPos][1] = gPosY;
        dGunData[f][ObjPos][2] = gPosZ;
        dGunData[f][ObjID] = CreateDynamicObject(GunObjects[GunID], dGunData[f][ObjPos][0], dGunData[f][ObjPos][1], dGunData[f][ObjPos][2]-1, 93.7, 120.0, random(360), -1, -1, -1, 80.0);

        new buffer[128];

        format(buffer, sizeof buffer, "%s",GunNames[dGunData[f][ObjData][0]]);
        dGunData[f][text3d] = CreateDynamic3DTextLabel(buffer, 0xAAAAAAAA, dGunData[f][ObjPos][0], dGunData[f][ObjPos][1], dGunData[f][ObjPos][2]-1, 15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 80.0);

        return;
}

Objects Prob

$
0
0
Seriously i am trying to fix my objects loading problem more than 1 week but didn't find any solution then i decided to post a thread here.. ;)

My Streamer version is v2.7.6

Objects Streamer also v2.7.6

Even i tried with later version of streamer v9 but objects didn't appear. The highlight is the objects.amx has loaded successfully!

So, you guys could clear my prob ;) [+rep in advance].
Viewing all 18226 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>