Advertisement
Guest User

Untitled

a guest
Sep 27th, 2014
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. public OnPlayerRequestSpawn(playerid){
  2. if(GetPVarInt(playerid,"Eingeloggt")==0)
  3. {
  4. return 0;
  5. }else if(SkinSelection[playerid] == 1){
  6. SetPVarInt(playerid,"Skin",GetPlayerSkin(playerid));
  7. SkinSelection[playerid]=0;
  8. StopAudioStreamForPlayer(playerid);
  9. SetPVarInt(playerid,"Registered",1);
  10. }
  11. return 1;
  12. }
  13.  
  14. public OnPlayerRequestClass(playerid, classid)
  15. {
  16. if(SkinSelection[playerid] == 1){
  17. SetPlayerVirtualWorld(playerid,playerid+1);
  18. SetPlayerPos(playerid, 218.3037,-98.4747,1005.2578);
  19. SetPlayerFacingAngle(playerid,118.6603);
  20. SetPlayerInterior(playerid,15);
  21. SetPlayerCameraPos(playerid, 216.3459,-100.0261,1005.5578);
  22. SetPlayerCameraLookAt(playerid, 218.3037,-98.4747,1005.2578);
  23. }
  24. if(GetPVarInt(playerid,"Registered")==1){
  25. SetSpawnInfo(playerid, 0, GetPVarInt(playerid,"Skin"), 943.8914,1733.1807,8.8516,265.3753, 0, 0, 0, 0, 0,0);
  26. SpawnPlayer(playerid);
  27. }
  28. return 1;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement