Advertisement
Guest User

Untitled

a guest
Sep 18th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.77 KB | None | 0 0
  1. function OnPlayerLogin2(playerid) {
  2.     if(!cache_num_rows()) return Dialog_Show(playerid, dialog_login , DIALOG_STYLE_PASSWORD, "SERVER: Login","Welcome to the "SERVER_NAME2" RPG Server.\n\nPlease enter your password below!","Login","Cancel");
  3.  
  4.     playerData[playerid][pDBID] = cache_get_field_content_int(0, "SQLID");
  5.     cache_get_field_content(0, "Password", playerData[playerid][pPassword], SQL, 130);
  6.     cache_get_field_content(0, "Name", playerData[playerid][pPlayerName], SQL, 130);
  7.     playerData[playerid][pAdmin] = cache_get_field_content_int(0, "Admin");
  8.     playerData[playerid][pHelper] = cache_get_field_content_int(0, "Helper");
  9.     playerData[playerid][pLevel] = cache_get_field_content_int(0, "Level");
  10.     playerData[playerid][pTutorial] = cache_get_field_content_int(0, "Tutorial");
  11.     playerData[playerid][pCash] = cache_get_field_content_int(0, "Cash");
  12.     playerData[playerid][pLanguage] = cache_get_field_content_int(0, "Language");
  13.     playerData[playerid][pSex] = cache_get_field_content_int(0, "Sex");
  14.     cache_get_field_content(0, "Email", playerData[playerid][pEmail], SQL, 130);
  15.     playerData[playerid][pConnectTime] = cache_get_field_content_float(0, "ConnectedTime");
  16.     playerData[playerid][pPayDay]  = cache_get_field_content_int(0, "PayDay");
  17.     playerData[playerid][pNMuted]  = cache_get_field_content_int(0, "nMute");
  18.  
  19.     playerData[playerid][gLogged] = 1;
  20.     SetPlayerScore(playerid, playerData[playerid][pLevel]);
  21.  
  22.     TogglePlayerSpectating(playerid, false);
  23.     return true;
  24. }
  25.  
  26. public OnPlayerSpawn(playerid) {
  27.     SetPlayerPos(playerid, 1798.6847,-1866.3220,13.5716);
  28.     SetPlayerInterior(playerid, 0);
  29.     SetPlayerVirtualWorld(playerid, 0);
  30.     SCM(playerid, -1, "Ai fost respawnat");
  31.  
  32.     if(playerData[playerid][pTutorial] == 0) SCM(playerid, -1, "Aici incepe tutorialu");
  33.     return true;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement