Advertisement
Guest User

Problème Pawn Center

a guest
Apr 10th, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. case DIALOG_LOGIN1:
  2. {
  3. if(!response) return Kick(playerid);
  4. else
  5. {
  6. new pwlenght = strlen(inputtext);
  7. if(pwlenght > 0)
  8. {
  9. new pw[200];
  10. format(pw, sizeof(pw), "%s", dini_Get(path, "password"));
  11. if(strcmp(inputtext, pw) == 0)
  12. {
  13. pInfo[playerid][sex] = dini_Int(path, "sex");
  14. pInfo[playerid][age] = dini_Int(path, "age");
  15. pInfo[playerid][US] = dini_Int(path, "US");
  16. pInfo[playerid][UN] = dini_Int(path, "UN");
  17. pInfo[playerid][LevelAdmin] = dini_Int(path, "LevelAdmin");
  18. if(pInfo[playerid][UN] == 1)
  19. {
  20. SetSpawnInfo(playerid, 0, 121, -1445.0745,501.4274,3.0414,266.8651,32,600,21,600,0,0);
  21. SpawnPlayer(playerid);
  22. SetPlayerSkin(playerid, 121);
  23. }
  24. else if(pInfo[playerid][US] == 1)
  25. {
  26. SetSpawnInfo(playerid, 0, 0, 248.2483,1800.9001,7.4141,358.4626,31,600,21,600,0,0);
  27. SpawnPlayer(playerid);
  28. SetPlayerSkin(playerid, 287);
  29. }
  30. else
  31. {
  32. SetSpawnInfo(playerid, 0, 0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  33. SpawnPlayer(playerid);
  34. SetPlayerSkin(playerid, 46);
  35. }
  36. }
  37. else
  38. {
  39. ShowPlayerDialog(playerid, DIALOG_WRONGPW, DIALOG_STYLE_MSGBOX, "Connection", "Mauvais Mot de passe", "OK", "Annuler");
  40. }
  41. }
  42. else
  43. {
  44. ShowPlayerDialog(playerid, DIALOG_NOPW2, DIALOG_STYLE_MSGBOX, "Connection", "Vous devez entrer un mot de passe :", "OK", "Annuler");
  45. }
  46.  
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement