Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. //exit
  2. ocmd:exit(playerid,params[])
  3. {
  4. for(new i=0; i<sizeof(bInfo); i++)
  5. {
  6. if(GetPlayerVirtualWorld(playerid)!=i)continue;
  7. if(!IsPlayerInRangeOfPoint(playerid,2,bInfo[i][b_ix],bInfo[i][b_iy],bInfo[i][b_iz]))continue;
  8. SetPlayerPos(playerid,bInfo[i][b_x],bInfo[i][b_y],bInfo[i][b_z]);
  9. SetPlayerInterior(playerid,0);
  10. SetPlayerVirtualWorld(playerid,0);
  11. return 1;
  12. }
  13. return 1;
  14. }
  15. //enter
  16. ocmd:enter(playerid,params[])
  17. {
  18. for(new i=0; i<sizeof(bInfo); i++)
  19. {
  20. if(!IsPlayerInRangeOfPoint(playerid,2,bInfo[i][b_x],bInfo[i][b_y],bInfo[i][b_z]))continue;
  21. SetPlayerPos(playerid,bInfo[i][b_ix],bInfo[i][b_iy],bInfo[i][b_iz]);
  22. SetPlayerInterior(playerid,bInfo[i][b_interior]);
  23. SetPlayerVirtualWorld(playerid,i);
  24. return 1;
  25. }
  26. return 1;
  27. }
  28.  
  29. //unter OnGameModeInit
  30. for(new i=0; i<sizeof(bInfo); i++)
  31. {
  32. CreatePickup(1239,1,bInfo[i][b_x],bInfo[i][b_y],bInfo[i][b_z]);
  33. }
  34.  
  35. //der Enum
  36. new bInfo[][buildingsEnum] ={
  37. {1198.9869,-920.0490,43.1179,3362.8965,-75.1861,1001.5078,10}
  38. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement