Advertisement
Guest User

Untitled

a guest
Feb 24th, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. public OnPlayerConnect(playerid) {
  2. EnablePlayerCameraTarget(playerid, 1);
  3. sanctionsDeelay[playerid] = gettime(); jobsDeelay[playerid] = gettime();
  4. PlayerInfo[playerid][pProductionTimer] = gettime() + 300; PlayerInfo[playerid][pRunOutTime] = gettime() + RunOutTime;
  5. GetPlayerName(playerid, PlayerInfo[playerid][pUsername], 25);
  6. ResetVariables(playerid);
  7.  
  8. ploop(x) {
  9. if(strcmp(PlayerInfo[x][pNormalName], PlayerInfo[playerid][pUsername], true, strlen(PlayerInfo[x][pNormalName])) == 0 && x != playerid) {
  10. SCMf(playerid, COLOR_RED, "Este deja logat.");
  11. return 0;
  12. }
  13. }
  14.  
  15. RemoveMaps(playerid);
  16. SetPlayerWorldBounds(playerid, 3579.6602, -4298.7334, 3971.8860, -3909.0200);
  17. TimerAtuPlayer[playerid] = SetTimerEx("UpdatePlayer", 2000, true, "d", playerid);
  18. SetPlayerColor(playerid,COLOR_GRAD2);
  19. ClearWanted(playerid);
  20. new szString[75];
  21.  
  22. // Login
  23. mysql_format(SQL, szString, 67,"SELECT * FROM users WHERE `name`='%s'",GetName(playerid));
  24. new Cache: loginverificare = mysql_query(SQL,szString);
  25. if(cache_get_row_count() > 0) {
  26. PlayerAccount[playerid] = 1; }
  27. else {
  28. PlayerAccount[playerid] = 0; }
  29. login[playerid] = SetTimerEx("LoginTimer", 30000, false,"d", playerid);
  30. PlayerTextdraws(playerid);
  31. CheckClassIP(playerid);
  32. cache_delete(loginverificare);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement