SA-MP 0.3z R2-2 server update

Quote:
Originally Posted by Micheal123
Посмотреть сообщение
i want samp R2 not for a server can anyone tell me!
I don't see any reason to not upgrade the server to Sa-Mp R2-2
Reply

Good Work
Reply

Those useful new natives is awful!

CreateExplosionForPlayer - good for slapping a player
SendDeathMessageToPlayer - uptade the kill feed just e.g players in minigun dm mini game.
BlockIP - All know what is this

OnIncomingConnection - tracking server stat and more ...

AWESOME!
Reply

Nice Its Good.
Reply

Finally the 'ackslimit' is raised from 1000 to 3000.
Thanks.
Reply

Quote:
Originally Posted by VladimirMark
Посмотреть сообщение
Finally the 'ackslimit' is raised from 1000 to 3000.
Thanks.
You can do that too. It is done only for the noobs who can't even do that.
Reply

Nice to see some new features and security.
Reply

Thanks!
Reply

Kalcor you should add a function/bool/int like GetPlayerNameN(playerid); to find the name of the play without space. Ex: Kevin_Rambo instead of GetPlayerName(playerid); which will give you Kevin Rambo
Reply

Scriptable..
Reply

Quote:
Originally Posted by kurta999
View Post
Scriptable..
Can you show me an example or help me? Would be greatful
Reply

pawn Code:
new str[24];
GetPlayerName(playerid, str, sizeof(str));
RemoveShit(str);
printf("after: %s", str);

stock RemoveShit(player_name[])
{
    for(new i, j = strlen(player_name); i != j; i++)
    {
        if(player_name[i] == '_') player_name[i] = ' ';
    }
}
If I good understood what do you want.
Reply

Quote:
Originally Posted by KevinPRINCE
View Post
Kalcor you should add a function/bool/int like GetPlayerNameN(playerid); to find the name of the play without space. Ex: Kevin_Rambo instead of GetPlayerName(playerid); which will give you Kevin Rambo
GetPlayerName already returns it with an underscore - the use of that to mean "space" on some servers is just convention, not a rule, so applying that to all servers would be wrong in many cases.
Reply

@Y_Less
So this code is legit? And will work no matter what? I mean it will search for that player only right?
Code:
        new input[MAX_PLAYER_NAME+1], named[MAX_PLAYER_NAME], idfix, kickid;
	format(input, sizeof(input), "%s", GetPlayerNameEx(playerid);
	kickid = playerid;
	sscanf(input, "u", idfix);
	if(idfix == INVALID_PLAYER_ID)
	{
	    SendClientMessageEx(playerid, COLOR_WHITE, "Server: Sorry you have been kicked due to a bug, relog.");
	    SetTimerEx("KickEx", 1000, 0, "i", kickid);
	    return 1;
	}
Edit: @Kurtaa Thanks bro

Needed:
Code:
if(player_name[i] == ' ') player_name[i] = '_';
Reply

Well Done !
Reply

Good one!
Reply

Very Good Nice upgrade!
But you could have added this to a_vehicles.inc:
Code:
native IsValidVehicle(vehicleid);
for the ones that don't understand: this function exists but it isn't defined by default
Reply

Quote:
Originally Posted by [GF]Sasino97
View Post
Very Good Nice upgrade!
But you could have added this to a_vehicles.inc:
Code:
native IsValidVehicle(vehicleid);
for the ones that don't understand: this function exists but it isn't defined by default
I really don't understand why stuff like this has been missing for so long. Sure it's easy to add manually and I suppose if it's added now then silly people would get "already defined" errors and not know why.

Still, would be nice to finally get actually completed SA:MP libraries with all the related functions and definitions.
Reply

Quote:
Originally Posted by [HLF]Southclaw
View Post
I really don't understand why stuff like this has been missing for so long. Sure it's easy to add manually and I suppose if it's added now then silly people would get "already defined" errors and not know why.

Still, would be nice to finally get actually completed SA:MP libraries with all the related functions and definitions.
Sincerely, I prefer (and a lot of people) that Kalcor define it by default, because is a native, same as gpci.
Reply

Awesome!!!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)