29.04.2012, 23:57
Well im trying to fix this im trying to make my servers name or anti stop so players can enter with one name other then Firstname_LastName . So if anyone cna take a look at this and tell me what i can change im gonna post the OnplayerConnect.
So if you can help me that would be great. Thank you, Blessed.
Quote:
public OnPlayerConnect(playerid) { new string[128]; new string2[128]; new plname[MAX_PLAYER_NAME]; new playersip[64]; new zone[MAX_ZONE_NAME]; new bancheck[64]; new msg2[128]; new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME); GetPlayerName(playerid, plname, sizeof(plname)); GetPlayerIp(playerid,playersip,sizeof(playersip)); new namestring = strfind(plname, "_", true); format(string, sizeof(string),"%s",playersip); gPlayerUsingLoopingAnim[playerid] = 0; gPlayerAnimLibsPreloaded[playerid] = 0; if(AntiName == 1) { if(namestring == -1) |
So if you can help me that would be great. Thank you, Blessed.