16.05.2014, 10:56
(
Last edited by KevinPRINCE; 16/05/2014 at 07:29 PM.
)
@Y_Less
So this code is legit? And will work no matter what? I mean it will search for that player only right?
Edit: @Kurtaa Thanks bro
Needed:
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; }
Needed:
Code:
if(player_name[i] == ' ') player_name[i] = '_';