Callbacks

Započeo Shomyy, Oktobar 19, 2017, 15:10:16 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Tip: Callbacks include
Slike ili Video: https://imgur.com/a/XN6NG
Opis i dodatne informacije:
PUBLICS
OnPlayerPause(playerid)
Description: Called when a player is paused.

OnPlayerResume(playerid, time)
Description: Called when a player has resumed.

OnPlayerHoldingKey(playerid, keys)
Description: Called when a player begins holding a specific key.

OnPlayerReleaseKey(playerid, keys)
Description: Called when a player releases a key.

OnPlayerFall(playerid, Float:damage)
Description: Called when a player falls and loses damage.

OnPlayerPacketLoss(playerid, Float:newpacket, Float:oldpacket)
Description: Called when a player experiences packet loss.

OnPlayerUseVending(playerid, type)
Description: Called when a player uses a vending machine.

OnPlayerCrashVehicle(playerid, vehicleid, Float:damage)
Description: Called when a player crashes a vehicle.

OnPlayerFPSChange(playerid, oldfps, newfps)
Description: Called when a player's FPS rate changes.

OnPlayerJackVehicle(playerid, targetid, vehicleid)
Description: Called when a player jacks another player's vehicle.

OnPlayerEmptyWeapon(playerid, weaponid)
Description: Called when a player depletes all ammo in a weapon.

OnPlayerFriendlyFire(playerid, targetid, weaponid)
Description: Called when a player shoots at a teammate.

OnPlayerTargetPlayer(playerid, targetid, weaponid)
Description: Called when a player targets a player with their weapon.

OnPlayerHideCursor(playerid, hovercolor)
Description: Called when a player cancels textdraw selection.

OnPlayerAntiReload(playerid, weaponid)
Description: Called when a player shoots without reloading their weapon.

OnPlayerAnimationPlay(playerid, animlib[], animname[])
Description: Called when an animation is played.

OnPlayerReloadWeapon(playerid, weaponid, ammo)
Description: Called when a player reloads their weapon.

OnPlayerActionChange(playerid, oldaction, newaction)
Description: Called when a player's action change (see action list).

OnPlayerRamPlayer(playerid, driverid, vehicleid, Float:damage)
Description: Called when a player rams another player.

OnPlayerSprayAtVehicle(playerid, vehicleid)
Description: Called wehn a player is spraying at a vehicle.

OnPlayerStartBurn(playerid)
Description: Called when a player is burning from fire.

OnPlayerStopBurn(playerid)
Description: Called when a player stops burning.

OnPlayerStartAim(playerid, weaponid)
Description: Called when a player is aiming a weapon.

OnPlayerStopAim(playerid)
Description: Called when a player stops aiming.

OnPlayerUseCamera(playerid)
Description: Called when a player snaps a picture with a camera (weapon ID: 43).

OnPlayerJump(playerid)
Description: Called when a player jumps (SHIFT key).

OnPlayerUseGarage(playerid, vehicleid, type)
Description: Called when a player uses a Pay'n'Spray or bomb shop.

OnVehicleCreated(vehicleid, color1, color2)
Description: Called when a vehicle is created by the server.

FUNCTIONS

IsPlayerPaused(playerid)
Description: Returns 1 if the player is paused.

IsPlayerSkydiving(playerid);
Description: Returns 1 if the player is skydiving.

IsPlayerSwimming(playerid)
Description: Returns 1 if the player is swimming.

IsPlayerBurning(playerid)
Description: Returns 1 if the player is burning.

IsPlayerAiming(playerid)
Description: Returns 1 if the player is aiming a weapon.

IsPlayerJumping(playerid)
Description: Returns 1 if the player is jumping.

IsPlayerNearVending(playerid, type)
Description: Returns 1 if the player is near the specified vending machine type.

IsPlayerSprayingVehicle(playerid, vehicleid)
Description: Returns 1 if the player is spraying the specified vehicle with a spraycan (weapon ID: 41).

IsPlayerNearGarage(playerid, type)
Description: Returns 1 if the player is near the specified garage type.

GetPlayerAction(playerid)
Description: Returns the player's current action.

Float:GetPlayerPacketLoss(playerid)
Description: Returns the player's packet loss.

GetPlayerPausedTime(playerid)
Description: Returns the time the player has been paused (in milliseconds).

GetPlayerFPS(playerid)
Description: Returns the player's FPS.

Zasto sam objavio ovaj include? ( retoricko pitanje ;) ) Vrlo jednostavno... Ovaj include moze pomoci mnogima u stvaranju gamemoda ili filterscripti...

Download link: Primeri funkcija - https://pastebin.com/GX9sY2T2
Download Include - http://forum.sa-mp.com/showthread.php?t=490436

Credits: Ne znam mu ime ! http://forum.sa-mp.com/showthread.php?t=490436

Facebook - Klik



Emmet_ je objavio, mogao si barem prevest ovo sto se moglo..

Pohvale liku koji je napravio, korisna stvar.
Oduvek sam se pitao:
"Zbog cega se ljudi toliko brinu jedni za druge?",
"Zasto ljudi daju sve od sebe da usrece neku osobu?"

Najjednostavnije receno brinu se jer vole tu osobu celim svojim srcem,
daju sve od sebe da je usrece zbog toga sto ne zele da je ikada vide tuznom ili rasplakanom.
#xsarnaaparatima..

Kasniš tri godine..
Former Developer | COD: Lords Of War - Modern Warfare 3 | Stunt Planet | Global Warfare |


OnPlayerPause(playerid)
Description: Kada je igrac AFK, na serveru ali nije u GTA

OnPlayerResume(playerid, time)
Description: Kada se vrati u GTA

OnPlayerHoldingKey(playerid, keys)
Description: Kada igrac drzi neko dugme

OnPlayerReleaseKey(playerid, keys)
Description: Kada igrac pusti neko dugme

OnPlayerFall(playerid, Float:damage)
Description: Kada igrac padne i izgubi HP ( helte )

OnPlayerPacketLoss(playerid, Float:newpacket, Float:oldpacket)
Description: Kada igrac "dozivljava gubitak paketa" ( Google translate je korisceno za ovo )

OnPlayerUseVending(playerid, type)
Description: Kada igrac koristi aparat za slatkise

OnPlayerCrashVehicle(playerid, vehicleid, Float:damage)
Description: Kada se igrac slupa

OnPlayerFPSChange(playerid, oldfps, newfps)
Description: Kada se igracev FPS promeni

OnPlayerJackVehicle(playerid, targetid, vehicleid)
Description: Kada igrac ukrade auto drugom igracu

OnPlayerEmptyWeapon(playerid, weaponid)
Description: Kada igrac izgubi metkove ( municiju ) u svom oruzju

OnPlayerFriendlyFire(playerid, targetid, weaponid)
Description: Kada igrac pogodi svog saigraca

OnPlayerTargetPlayer(playerid, targetid, weaponid)
Description: Kada igrac cilja drugog igraca

OnPlayerHideCursor(playerid, hovercolor)
Description: Kada igrac prestane da selektuje textdraw

OnPlayerAntiReload(playerid, weaponid)
Description: Kada igrac puca bez punjenja metkova

OnPlayerAnimationPlay(playerid, animlib[], animname[])
Description: Kada igrac ima neku animaciju

OnPlayerReloadWeapon(playerid, weaponid, ammo)
Description: Kada igrac puni svoje oruzje

OnPlayerActionChange(playerid, oldaction, newaction)
Description: Kada se igraceva akcija promeni

OnPlayerRamPlayer(playerid, driverid, vehicleid, Float:damage)
Description: Ne znam prevod....

OnPlayerSprayAtVehicle(playerid, vehicleid)
Description: Kada igrac sprejom farba auto ( nije 100% tacan prevod )

OnPlayerStartBurn(playerid)
Description: Kada igrac pocne da gori u vatri

OnPlayerStopBurn(playerid)
Description: Kada igrac prestane da gori

OnPlayerStartAim(playerid, weaponid)
Description: Kada igrac cilja sa oruzjem

OnPlayerStopAim(playerid)
Description: Kada igrac prestane da cilja sa oruzjem

OnPlayerUseCamera(playerid)
Description: Kada igrac slika sa kamerom ( Oruzje ID 43 )

OnPlayerJump(playerid)
Description: Kada igrac skace

OnPlayerUseGarage(playerid, vehicleid, type)
Description: Kada koristi garazu

OnVehicleCreated(vehicleid, color1, color2)
Description: Kada se vozilo kreira od strane servera....

NIJE 100% TACAN PREVOD !

Facebook - Klik



Molim??
OnPlayerUseVending(playerid, type)
Description: Kada igrac koristi aparat za slatkise

Oduvek sam se pitao:
"Zbog cega se ljudi toliko brinu jedni za druge?",
"Zasto ljudi daju sve od sebe da usrece neku osobu?"

Najjednostavnije receno brinu se jer vole tu osobu celim svojim srcem,
daju sve od sebe da je usrece zbog toga sto ne zele da je ikada vide tuznom ili rasplakanom.
#xsarnaaparatima..

Citat: SejnurHD poslato Oktobar 19, 2017, 16:52:14 POSLE PODNE
Molim??
OnPlayerUseVending(playerid, type)
Description: Kada igrac koristi aparat za slatkise


Vjerovatno misli na aparat za sokove itd.
Kad dodjes kod aparata i kliknes 'ENTER'. :)



Ovo tko nije koristio nije star ni godinu dana skripter, inače ovo je definitivno dobar inc meÄ'utim postoje i bolji includevi [MV_Functions i slično].
Ali opet dobro je da si podjelio.

Citat: Bolex_ poslato Oktobar 19, 2017, 15:46:52 POSLE PODNE
Kasniš tri godine..
Definitivno haha.