View Single Post
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 12-20-2020 , 09:28   Re: [CS:GO] Trying to make a script to change player's name, when they join
Reply With Quote #5

i have no clue what i am doing so please do not quote me on this. i am just showing example.

edit: and... polishing and grinding my Polis if you don't mind me.

PHP Code:
#include <sourcemod>
#include <sdktools_functions>

// Info na temat plugina - Plugin info
public Plugin:myinfo = {
    
name "CSMaxShot Core",
    
author "Kazafka",
    
description "Dobry plugin, polecam!",
    
version "0.0.3"
}

// Zmiana pseudonimu gracza - Player's alias changing
public OnClientPostAdminCheckclient ) {
    if( 
client && CheckCommandAccessclient"generic_admin"ADMFLAG_GENERICfalse )) { // to jest filtr

        
char name[MAX_NAME_LENGTH], buffer[MAX_NAME_LENGTH]
        
GetClientNameclientnamesizeofname ))
        
Formatbuffersizeofbuffer ), "GODADMIN-%s"name // Nie wiem, co próbujesz zrobić
        
SetClientNameclientbuffer )
    }

__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.

Last edited by GsiX; 12-20-2020 at 09:31.
GsiX is offline