forward

zp_player_spawn_post

Syntax

forward zp_player_spawn_post(id, resp_zombie);

Description

Called when a player spawns. This is also called for CZ bots
which are spawning

Parameters

id Player index who has spawned
resp_zombie This is passed by the main plugin as 1 if
the player needs to be spawned as a zombie
otherwise it is passed as zero

Note

You should use this, instead of other spawn forwards,
when you want to change some one's class after spawning.

Note

If you have used this forward then you must return
ZP_PLUGIN_HANDLED to inform the main plugin that you have used
this forward