Tempestia Posted July 18, 2012 Share Posted July 18, 2012 Encore un demande d'aide, toujours la même chose : (Ce message s'adresse plus à Slayzer) Modification du flag o : -> 1.2 de vitesse -> Pas de falling damage -> Essaie : TRAIL Quote Link to comment Share on other sites More sharing options...
Slayzer Posted July 18, 2012 Share Posted July 18, 2012 laisse moi dix minutes je termine un truc. Quote Link to comment Share on other sites More sharing options...
Tempestia Posted July 18, 2012 Author Share Posted July 18, 2012 Sa veux dire oui, MERCI <3 Quote Link to comment Share on other sites More sharing options...
Kriax Posted July 18, 2012 Share Posted July 18, 2012 https://forums.alliedmods.net/showthread.php?p=1691372 Voila pour les trails ^^" Quote Link to comment Share on other sites More sharing options...
Slayzer Posted July 18, 2012 Share Posted July 18, 2012 (edited) #include <sdktools> #include <sdkhooks> new bool:hook_sdk[MAXPLAYERS+1] = false; public Plugin:myinfo = { name = "Vip", description = "Vip bonus", author = "Slayzer", version = "1.0.0", url = "http://magnetik.verygames.net/forum" }; public OnPluginStart() { HookEvent("player_spawn", OnPlayerSpawn); } public Action:OnPlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast) { new client = GetClientOfUserId(GetEventInt(event, "userid")); if (GetUserFlagBits(client) & ADMFLAG_CUSTOM1) { SetEntPropFloat(client, Prop_Data, "m_flLaggedMovementValue", 1.2); SDKHook(client, SDKHook_OnTakeDamage, OnTakeDamagePre); hook_sdk[client] = true; } } public Action:OnTakeDamagePre(victim, &attacker, &inflictor, &Float:damage, &damagetype) { if ((damagetype & DMG_FALL) == DMG_FALL) { return Plugin_Handled; } return Plugin_Continue; } public OnClientDisconnect(client) { if (IsClientInGame(client)) { if (hook_sdk[client]) { SDKUnhook(client, SDKHook_OnTakeDamage, OnTakeDamagePre); } } } le plugin requiert SDKHOOKS : http://forums.alliedmods.net/showthread.php?t=106748 a compiler depuis ton PC. pour les trails ça existe déjà : http://forums.alliedmods.net/showthread.php?t=183131 Edited July 18, 2012 by Slayzer Quote Link to comment Share on other sites More sharing options...
Tempestia Posted July 18, 2012 Author Share Posted July 18, 2012 SourcePawn Compiler 1.4.0 Copyright © 1997-2006, ITB CompuPhase, ©2004-2008 AlliedModders, LLC /home/groups/sourcemod/upload_tmp/phpmPjXRk.sp(2) : fatal error 120: cannot read from file: "sdkhooks" Compilation aborted. 1 Error. Quote Link to comment Share on other sites More sharing options...
Kriax Posted July 18, 2012 Share Posted July 18, 2012 Tu doit le compiler en local avec l'include SDKHOOKS ;) Kriax. Quote Link to comment Share on other sites More sharing options...
iNex Posted July 18, 2012 Share Posted July 18, 2012 SDKHook(client, SDKHook_OnTakeDamage, OnTakeDamagePre);µ Fais ça plutot quand le joueur se connect au serveur sinon tu va le hook a chaque respawn ce qui est totalement inutile... Quote Link to comment Share on other sites More sharing options...
Mr.Alien Posted July 18, 2012 Share Posted July 18, 2012 laisse moi dix minutes je termine un truc. Sa bosse dur ! ;-) Quote Link to comment Share on other sites More sharing options...
Tempestia Posted July 18, 2012 Author Share Posted July 18, 2012 Comment on compile en local ?svp Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.