Allo,

Voila j'aurai besoin d'aide pour rendre le lien suivant cliquable afin de se rendre sur un forum en particulier, merci de votre aide

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
static void SV_KickNum_f( void ) {
	client_t	*cl;
 
	// make sure server is running
	if ( !com_sv_running->integer ) {
		Com_Printf( "Server is not running.\n" );
		return;
	}
 
	if ( Cmd_Argc() != 2 ) {
		Com_Printf ("Usage: kicknum <client number>\n");
		return;
	}
 
	cl = SV_GetPlayerByNum();
	if ( !cl ) {
		return;
	}
	if( cl->netchan.remoteAddress.type == NA_LOOPBACK ) {
		SV_SendServerCommand(NULL, "print \"%s\"", "Cannot kick host player\n");
		return;
	}
 
	SV_DropClient( cl, "Goto forum ^1http://qc.com" );
	cl->lastPacketTime = svs.time;	// in case there is a funny zombie
}