Either your script is bugged, or you have a leaked password.
You need to post more info, and some logs maybe. When did it start happening, and who wrote your script... |
Are you kidding right?
@OP: When the player joins check in your script if you set to 0 all player data values. If you can't find then do it on your own. |
public OnPlayerConnect(playerid) { SetPlayerMapIcon(playerid, 1, 2498.4844,-1643.2212,13.7826, 62, 0, MAPICON_LOCAL);//grove SetPlayerMapIcon(playerid, 2, 2168.0500,-1672.7062,15.0821, 59, 0, MAPICON_LOCAL);//ballas SetPlayerMapIcon(playerid, 3, 2801.4448,-1088.8105,30.7218, 60, 0, MAPICON_LOCAL);//vagos SetPlayerMapIcon(playerid, 4, 1755.6479,-1911.7106,13.5680, 58, 0, MAPICON_LOCAL);//asteca SetPlayerMapIcon(playerid, 5, 2787.7656,-2440.0081,13.6337, 20, 0, MAPICON_LOCAL);//russian SetPlayerMapIcon(playerid, 6, 1552.8384,-1675.1357,16.1953, 30, 0, MAPICON_LOCAL);//cops TextDrawShowForPlayer(playerid,Text:TextdrawUST); TextDrawShowForPlayer(playerid,Text:TextdrawALT); new string[64], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"%s Has Joined The Server!",pName); SendClientMessageToAll(Red,string); SetWorldTime(0); SendClientMessage(playerid,bojaz,"Welcome to server enjoy!! If u want to see commands type /help."); if(fexist(UserPath(playerid))) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"Account Login","Type your password below to login.","Login","Quit"); PlayAudioStreamForPlayer(playerid,"http://s3.argim.net/files/r/gta_san_andreas_theme_song_wmm.mp3"); } else { new string[125]; format(string,sizeof(string),"Hello %s.\nYou're not registered please register.",sendername(playerid)); ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,"Account Register",string,"Register","Later"); PlayAudioStreamForPlayer(playerid,"http://s3.argim.net/files/r/gta_san_andreas_theme_song_wmm.mp3"); } HitObjTime[playerid] = 0; RedScreenTime[playerid] = 0; AdvTime[playerid] = 0; return 1; } |
public OnPlayerDisconnect(playerid, reason) { new ime[MAX_PLAYER_NAME], izlazporuka[45]; GetPlayerName(playerid, ime, sizeof(ime)); format(izlazporuka, sizeof(izlazporuka), "%s Has Left The Server", ime); SendClientMessageToAll(Red, izlazporuka); new INI:File = INI_Open(UserPath(playerid)); INI_SetTag(File,"data"); INI_WriteInt(File,"Cash",GetPlayerMoney(playerid)) ; INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]); INI_WriteInt(File,"Banned",PlayerInfo[playerid][pBanned]); INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]); INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]); INI_WriteInt(File,"Score",GetPlayerScore(playerid) ); INI_Close(File); return 1; } |
When the player joins check in your script if you set to 0 all player data values. If you can't find then do it on your own.
|