Quantcast
Channel: Forum VeryGames
Viewing all articles
Browse latest Browse all 5196

Petit script

$
0
0
Voila j'ai coder un petit plugin mais il ne fonctionne pas si quelqu'un peut m’éclaircir et m'expliquer mes erreurs.


Code:

#include <sdktools>#include <sourcemod>


public OnPluginStart()
{
    HookEvent("player_spawn", CallBackSpawn);
    RegConsoleCmd("sm_vitesse1", Command_Vitesse1);
    RegConsoleCmd("sm_vitesse0", Command_Vitesse0);
}
public Action:CallBackSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
    new client = GetClientOfUserId(GetEventInt(event, "userid"));
    if (GetClientTeam(client) == 3)
    {
      SetEntityHealth(client, 500)
    }
public Action:Command_Vitesse1(client, args)
}
    if (GetClientTeam(victim) == 3)
    {
    SetEntPropFloat(client, Prop_Data, "m_flLaggedMovementValue", 1.4);
    }
public Action:Command_Vitesse0(client, args)
}
    if (GetClientTeam(victim) == 3)
    {
    SetEntPropFloat(client, Prop_Data, "m_flLaggedMovementValue", 1.0);
    }
}


Viewing all articles
Browse latest Browse all 5196