View Single Post
DarthMan
Veteran Member
Join Date: Aug 2011
Old 11-28-2017 , 16:58   Re: [H3LP] PlayerClass Fortress Forever
Reply With Quote #13

Quote:
Originally Posted by DarthMan View Post
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.

Last edited by DarthMan; 11-28-2017 at 17:00.
DarthMan is offline