Jump to content

Recommended Posts

Posted

Am vazut acum o problema. Jucatori pot folosi la nume pt inregistare key speciale ".[ ]"

e normal ?, ca nu i inregistreaza in baza de date

Cum as putea sa fac un script sa nu-i lase sa intre pe server cu acele key speciale

Posted

Salutare, faci o verificare la onplayerconnect, desi numele ar trebui sa se salveze si cu paranteze in baza de date

	new named[40];
	GetPlayerName(playerid, named, sizeof(named));
	for(new i=0;i< strlen(named); i++)
	{ 
		if(named[i] == '[' || named[i] == ']') 
		{
			named[i] = '.';	
			SCM(playerid,-1,"Nu ai voie sa folosesti caracterele acestea, numele ti-a fost schimbat!");
			SetPlayerName(playerid,named);
		}
	}

ceva de genul

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.