PHP Code:
if(GiftUsed[id] == true) {
return PLUGIN_HANDLED
--->
PHP Code:
if(GiftUsed[id] || !is_user_alive(id)) {
return PLUGIN_HANDLED
If you're using bools you don't need to check with == ( if you don't absolutely prefer it that way ofc ),
Just "if ( bool )" for true or "if ( !bool )" for false.
( Also works for variables if you wanna check if it is zeroed, "!" )
And in the spawn function there should always be an alive check,
the spawn function gets called once on connect aswell, so in this case...
the bool will be true before he spawns for the first time.