#define FILTERSCRIPT
OnPlayerPause(playerid) OnPlayerAFK(playerid) OnPlayerShotPlayer(playerid, targetid, Float:Heath, Float:Armour, weaponidt) (Headshot parameter removed) OnPlayerWeaponChange(playerid, newweaponid, oldweaponid) OnPlayerVirtualWorldChange(playerid, newworldid, oldworldid) OnPlayerEnterWater(playerid) OnPlayerExitWater(playerid) OnPlayerHealthChange(playerid, Float:newhealth, Float:oldhealth) OnPlayerArmourChange(playerid, Float:newarmour, Float:oldarmour) OnPlayerMoneyChange(playerid, newmoney, oldmoney) OnPlayerUseMachine(playerid) OnVehicleCreate(vehicleid) OnVehicleDestroy(vehicleid) OnPlayerUseVendingMachine(playerid) OnPlayerPlayAnimation(playerid, Lib[], Name[]) OnPlayerScoreChange(playerid, newscore, oldscore)
SetPlayerAFK(playerid, bool:afk) IsPlayerAFK(playerid) IsPlayerPaused(playerid) IsPlayerInWater(playerid) IsPlayerParachuting(playerid) IsPlayerUsingMachine(playerid) SetPlayerMoney(playerid, money) CrashPlayer(playerid) EnableDriveBy(bool:enable) EnablePlayerDriveBy(playerid, bool:enable) EnableInteriorDamage(bool:enable) EnablePlayerInteriorDamage(playerid, bool:enable) Reconnect(playerid) ReconnectEx(playerid, time) GetPlayerFPS(playerid) GetVehiclePlate(vehicleid, Plate[], size) GetVehicleColor(vehicleid, color1, color2) GetVehicleInterior(vehicleid) GetVehicleIDFromPlate(Plate[]) IsVehicleCreated(vehicleid) EnableVendingMachines(bool:enable) EnableVendingMachinesForPlayer(playerid, bool:enable) EnableCapsLock(bool:enable) EnableCapsLockForPlayer(playerid, bool:enable) GivePlayerScore(playerid, score) GetOnlinePlayers(bool:CountNPC) AddForbidenNick(nick[]) (New!) AddForbidenWord(word[]) (New!) EnableTiresDamage(bool:Enable) (New!) EnableTiresDamageForVehicle(vehicleid, bool:Enable) (New!) GetVehicleType(model) (New!)
warning 200: symbol "@yH_VehicleDamageStatusUpdate2C" is truncated to 31 characters
Fixed some script bugs.22/8/2011 (version 1.1)
Fixed some script bugs and added new callbacks & functions:6/9/2011 (version 2.0)
Код:OnPlayerUseVendingMachine(playerid) (old OnPlayerUseMachine) OnPlayerPlayAnimation(playerid, Lib[], Name[]) OnPlayerScoreChange(playerid, newscore, oldscore) EnableVendingMachines(bool:enable) EnableVendingMachinesForPlayer(playerid, bool:enable) EnableCapsLock(bool:enable) EnableCapsLockForPlayer(playerid, bool:enable) GivePlayerScore(playerid, score) GetOnlinePlayers(bool:CountNPC)
New OnPlayerShotPlayer system. (thx to wups).
The code was optimized.
Added the posivility to remove callbacks & functions, so the amx takes up less space.
New functions added:
Код:AddForbidenNick(nick[]) AddForbidenWord(word[]) EnableTiresDamage(bool:Enable) EnableTiresDamageForVehicle(vehicleid, bool:Enable) GetVehicleType(model)
JernejL (GetPlayerFPS y Reconnect (methods), and encode_tires function)
Double-O-Seven (Cross Product Functions)
Nero_3D (AdjustVector y GetPlayerCameraWeaponVector Functions)
wups (OnPlayerShootPlayer)
****** (YSI)
The Chaoz (Scripting)
public OnFemalePlayerConnect(playerid)
{
Rape(playerid);
return;
}
Someone Need to Make the Funcion:
pawn Код:
|
Reconnect(playerid)
ReconnectEx(playerid, time)
What does
pawn Код:
|
u may can do that geting players skin, or in rp servers if the player say that is a female... just some anims. but i don't find that useful
|
I don't get it though, so if you crash, it'll invite them back into the game. If so that'd be so damn useful and the whole include is!
Nice include, it's well done! |
ABout the OnPlayerShotPlayer
the Health is the Health lost right ? same with armour? And please check this topic : https://sampforum.blast.hk/showthread.php?tid=278151 |
Since it interferes with my gamemode somehow, I'm taking only the Reconnect function. Nice work though with the rest.
By the way, is that OnPlayerUseMachine to detect the usage of vending machines? |
SetFPS(playerid);
I don't get it though, so if you crash, it'll invite them back into the game. If so that'd be so damn useful and the whole include is!
Nice include, it's well done! |
\pawno\include\YSI\y_hooks.inc(717) : error 021: symbol already defined: "OnPlayerEnterCheckpoint"
C:\Documents and Settings\vlad\Desktop\SAMP\pawno\include\YSI\y_hooks.inc(729) : error 021: symbol already defined: "OnPlayerLeaveCheckpoint"
pawno\include\YSI\y_hooks.inc(918) : error 025: function heading differs from prototype
pawno\include\Callbackz.inc(218) : error 025: function heading differs from prototype
pawno\include\Callbackz.inc(480) : error 017: undefined symbol "rondom"
pawno\include\Callbackz.inc(485) : error 017: undefined symbol "Plate"
pawno\include\Callbackz.inc(494) : error 017: undefined symbol "rondom"
pawno\include\Callbackz.inc(499) : error 017: undefined symbol "Plate"
gamemodes\Beat-F.pwn(2440) : warning 219: local variable "pHealth" shadows a variable at a preceding level
gamemodes\lvdm.pwn(2440) : warning 219: local variable "pArmour" shadows a variable at a preceding level
gamemodes\lvdm.pwn(2442) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\vlad\Desktop\SAMP\gamemodes\Beat-F.pwn(2443) : error 035: argument type mismatch (argument 2)
gamemodes\lvdm.pwn(2452) : warning 213: tag mismatch
gamemodes\lvdm.pwn(2452) : warning 213: tag mismatch
gamemodes\lvdm.pwn(2440) : warning 203: symbol is never used: "pArmour"
gamemodes\lvdm.pwn(2440) : warning 203: symbol is never used: "pHealth"
gamemodes\lvdm.pwn(6953) : error 021: symbol already defined: "crossp"
gamemodes\lvdm.pwn(6962) : error 021: symbol already defined: "GetDistanceFromPointToLine"
gamemodes\lvdm.pwn(9056) : warning 203: symbol is never used: "S@@_OnPlayerInteriorChange"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
12 Errors.
using ban player for reconnect IS VERY BAD, let's say I'm on my school network.. playing with 20 friends GTA, now the admin wants to reconnect me and within the time it's reconnecting me, another friend wants to join... what happens? all players got disconnected and one player sees we're banned...
Happy playing lol! and if in meantime the server shuts down for a reason then maybe the player will stay banned... so in short: very dangerous reconnect function. |
pawno\include\YSI\y_utils.inc(392) : error 079: inconsistent return types (array & non-array)