Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerConnect(playerid) {
- EnablePlayerCameraTarget(playerid, 1);
- sanctionsDeelay[playerid] = gettime(); jobsDeelay[playerid] = gettime();
- PlayerInfo[playerid][pProductionTimer] = gettime() + 300; PlayerInfo[playerid][pRunOutTime] = gettime() + RunOutTime;
- GetPlayerName(playerid, PlayerInfo[playerid][pUsername], 25);
- ResetVariables(playerid);
- ploop(x) {
- if(strcmp(PlayerInfo[x][pNormalName], PlayerInfo[playerid][pUsername], true, strlen(PlayerInfo[x][pNormalName])) == 0 && x != playerid) {
- SCMf(playerid, COLOR_RED, "Este deja logat.");
- return 0;
- }
- }
- RemoveMaps(playerid);
- SetPlayerWorldBounds(playerid, 3579.6602, -4298.7334, 3971.8860, -3909.0200);
- TimerAtuPlayer[playerid] = SetTimerEx("UpdatePlayer", 2000, true, "d", playerid);
- SetPlayerColor(playerid,COLOR_GRAD2);
- ClearWanted(playerid);
- new szString[75];
- // Login
- mysql_format(SQL, szString, 67,"SELECT * FROM users WHERE `name`='%s'",GetName(playerid));
- new Cache: loginverificare = mysql_query(SQL,szString);
- if(cache_get_row_count() > 0) {
- PlayerAccount[playerid] = 1; }
- else {
- PlayerAccount[playerid] = 0; }
- login[playerid] = SetTimerEx("LoginTimer", 30000, false,"d", playerid);
- PlayerTextdraws(playerid);
- CheckClassIP(playerid);
- cache_delete(loginverificare);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement