Код
public player_spawn(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
CreateTimer(2.0, Timer_func, client, 0);
}
public Action:Timer_func(Handle:timer, any:client)
{
if (IsPlayerAlive(client))
{
for (new i=0; i<5; i++)
{
new index = -1;
while ((index = GetPlayerWeaponSlot(client,i)) != -1)
{
if (IsValidEntity(index))
RemovePlayerItem(client,index);
}
}
}
}