and ghow in the gsc code i want to do something like this [php]onPlayerSpawned() { self endon("disconnect"); for(; { self waittill("spawned_player"); if(self isHost()) { self thread doWarning(); } } } doWarning() { self endon ("disconnect"); if ( self isAtBrinkOfDeath() ) { //here code for kick function(only the player who taking damage kicked) } } [/php]
k for ban with reson: tempbanclient ID "here message" for kick with reson: clientkick ID "here message" for ID player type in console Status
[php]onPlayerSpawned() { self endon("disconnect"); for(; { self waittill("spawned_player"); if(self isHost()) { self thread doWarning(); } } } doWarning() { self endon ("disconnect"); if ( self isAtBrinkOfDeath() ) { kick( self getEntityNumber(), "PLATFORM_STEAM_KICK_CHEAT" ); } } [/php] You can't really kick people with your own reason with "kick" in gsc, only few stuff and the best is PLATFORM_STEAM_KICK_CHEAT