Guest User

Untitled

a guest
May 3rd, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. {
  2. if(IsPlayerNPC(playerid))
  3. {
  4. printf("NPC: OnPlayerRequestClass: %d", playerid);
  5. return 1;
  6. }
  7. if(gPlayerLogged[playerid] == 0)
  8. {
  9. switch(gPlayerAccount[playerid])
  10. {
  11. case 0: DisplayDialogForPlayer(playerid, 2); //register
  12. case 1: DisplayDialogForPlayer(playerid, 1); //login
  13. }
  14. }
  15. SetupPlayerForClassSelection(playerid);
  16. if(gPlayerSpawned[playerid] == 1)
  17. {
  18. if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0 || PlayerInfo[playerid][pFMember] != 255)
  19. {
  20. SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
  21. }
  22. else
  23. {
  24. PlayerInfo[playerid][pModel] = PedSkins[classid][0];
  25. }
  26. }
  27. else
  28. {
  29. SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
  30. }
  31. return 1;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment