Quote:
Originally Posted by DarthMan
Worked now, many thanks !
But, what about retaining the old player's position?
It seems that if i changed the vec origin it resets back to default.
Also, this crashes the server.
Code:
stock void FF_RemoveAllWeapons(int client)
{
int weaponIndex;
for (int i = 0; i <= 5; i++)
{
weaponIndex = 0;
while ((weaponIndex = GetPlayerWeaponSlot(client, i)) != -1)
{
RemovePlayerItem(client, weaponIndex);
AcceptEntityInput(weaponIndex, "Kill");
}
}
}
|
So removing DispatchSpawn will not keep the previous weapons?
Without it, the class will not be changed.