New Member
✔️ HL Verified
🚂 Steam Linked
Discord Member
Hi all, I decided to make a plugin that respawns the dragonballs (to use for example when a player throws them out of the map), I wrote this function:
but the dragonballs are respawned in a "random" point of the map.
How do I set the point at which they should be respawned? This is my first plugin and I don't have much experience with this language.
I am sorry for my bad english
Thanks in advance
PHP:
public respawn( id, level, cid )
{
if( get_pcvar_num( CvarEnable ) )
{
for( new i=0; i<=6; i++ )
RemoveDragonball( i );
for( new i=0; i<=6; i++ )
CreateDragonball( i );
SpawnDragonballs( );
}
else
console_print( id, "SpawnDB is disabled!" )
return PLUGIN_HANDLED
}
How do I set the point at which they should be respawned? This is my first plugin and I don't have much experience with this language.
I am sorry for my bad english
Thanks in advance