SA-MP Forums Archive
world spawn - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: world spawn (/showthread.php?tid=634690)



world spawn - XxMadmanxX - 24.05.2017

Hello i made a script of /DM areas

but when someone /leave the /dm it spawns him in another world

how can i set it to world id 0 ?

PHP код:
if (strcmp("/leave"cmdtexttrue10) == 0)
       {
        
gDmSpawn[playerid] = 0;
        
SendClientMessage(playeridCOLOR_YELLOW"You will no longer respawn in DM's");
        
SpawnPlayer(playerid);
        return 
1;
       } 
help me please


Re: world spawn - Bolex_ - 24.05.2017

Код:
SetPlayerVirtualWorld( playerid, 0);



Re: world spawn - RxErT - 24.05.2017

PHP код:
SetPlayerInterior(playeridinteriorid); // This would change player's interior 
SetPlayerVirtualWorld(playeridvirtual=0(normal)); and this for player's world... 



Re: world spawn - XxMadmanxX - 24.05.2017

Thanks.


Re: world spawn - saffierr - 24.05.2017

Just a tip: If you run pawno as an administrator on your right hand you can see all the functions to use, it'd be handy to take a look.