Simple questions.
#1

I tried very forum before but found nothing related,
Straight to being more onplayertext this character yet a defect the server: "•"?
would be necessary:
Код:
if (strfind( "•", text ) != -1 ) 
	{ 
		SetPVarInt(playerid, "AttemptExploitBug", GetPVarInt(playerid, "AttemptExploitBug")+1);
	    if(GetPVarInt(playerid, "AttemptExploitBug") == 2) 
		{ 
			DeletePVar(playerid,"AttemptExploitBug");
			Kick(playerid); 
			printf("AttemptExploitBug: %d",GetPVarInt(playerid, "AttemptExploitBug"));
		} 
		return 0;
	}
This bug still exists or can I forget him?
And
In comparison with the new functions:
Code:
Player Variables

DeletePVar - Delete a player variable
GetPVarFloat - Get a player variable as a float
GetPVarInt - Get a player variable as an integer
GetPVarString - Get a player variable as a string
SetPVarFloat - Set a player variable to a float
SetPVarInt - Set a player variable to an integer
SetPVarString - Set a player variable to a string

I wonder if this new functions added in 0.3C, would like a cookie from the web, then the amendment will possile since it is stored on the client?

These functions would be implemented to replace that kind of problem?
EX:
pawn Code:
new HideMSG[MAX_PLAYERS];
onplayerconnect
HideMSG[playerid] = 0;
/*Aqui ele й 0 para esta variбvel a ser admin ou nгo, ocupando memуria desnecessariamente, eu acredito.*/
onplayercommandtext

/hidemsgs

if admin == true

if HideMSG == 0

HideMSG[playerid] = 1;

else if HideMSG == 1

HideMSG[playerid] = 0;

return 1;
It would be so if such functions exist with the functionality that we believe:
pawn Code:
pawn Код:
onplayerlogin

if Admin
SetPVarInt(playerid, "HideMSG", 0);

return 1;


onplayercommandtext

/hidemsgs

if admin == true

if GetPVarInt(playerid, "HideMSG") == 0

SetPVarString(playerid,"HideMSG",1);
else if GetPVarInt(playerid, "HideMSG ") == 1

SetPVarString(playerid,"HideMSG",0);
I hope you understood my question, for those who do not understand blame the ****** translator for his translation inificiente often.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)