Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interiorSpawn1(interiorID, player1, player2 = -1)
- {
- if(player2 > -1)
- {
- new sWorld, aWorld, sInterior, aInterior;
- sWorld = GetPlayerVirtualWorld(player2);
- aWorld = GetPlayerVirtualWorld(player1);
- sInterior = GetPlayerInterior(player2);
- aInterior = GetPlayerInterior(player1);
- if(sWorld > 0 || aWorld > 0)
- {
- SetPlayerVirtualWorld(player2, 0);
- SetPlayerVirtualWorld(player1, 0);
- }
- if(sInterior && aInterior != 0)
- {
- SetPlayerInterior(player1, interiorID);
- SetPlayerInterior(player2, interiorID);
- }
- return 1;
- }
- else
- {
- new sWorld, sInterior;
- sWorld = GetPlayerVirtualWorld(player1);
- sInterior = GetPlayerInterior(player1);
- if(sWorld > 0)
- {
- SetPlayerVirtualWorld(player1, 0);
- }
- if(sInterior != 0)
- {
- SetPlayerInterior(player1, interiorID);
- }
- return 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement