Quote:
Originally Posted by MatoBoost
Alright, I will try this, thanks! Also about removing grenades, how do I do that ? To be honest I started with SourcePawn just today, I just have some experience from C, so far I only edited easy lines of code.
|
Just for example, without isclientingame check
PHP Code:
public void OnPluginStart()
{
HookEvent("round_end", RoundEnd, EventHookMode_Pre);
}
public Action:RoundEnd(Handle:event, const String:name[], bool:dontBroadcast)
{
for( new client=1; client<=MaxClients; client++)
{
new i = 3;
{
new ent;
while((ent = GetPlayerWeaponSlot(client, i)) != -1)
{
RemovePlayerItem(client, ent);
AcceptEntityInput(ent, "Kill");
}
}
}
}