SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 24/05/2017, 12:35 PM   #1
XxMadmanxX
Big Clucker
 
Join Date: Mar 2017
Posts: 73
Reputation: 1
Default world spawn

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 Code:
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
XxMadmanxX is offline   Reply With Quote
Old 24/05/2017, 12:43 PM   #2
Bolex_
Gangsta
 
Bolex_'s Avatar
 
Join Date: Aug 2015
Location: Republic Of Croatia
Posts: 572
Reputation: 103
Default Re: world spawn

Code:
SetPlayerVirtualWorld( playerid, 0);
__________________
Call Of Duty - Lords Of War
Community Help Scripter | Lead Administrator
151.80.108.109:8150
Bolex_ is offline   Reply With Quote
Old 24/05/2017, 12:51 PM   #3
RxErT
Big Clucker
 
RxErT's Avatar
 
Join Date: May 2016
Location: SA:MP Lemon
Posts: 125
Reputation: 6
Default Re: world spawn

PHP Code:
SetPlayerInterior(playeridinteriorid); // This would change player's interior 
SetPlayerVirtualWorld(playeridvirtual=0(normal)); and this for player's world... 
__________________
[████████] FilterScripts [████████]
Looking for a SA:MP Server With DDOS Protection and some great available stuff?

RxErT is offline   Reply With Quote
Old 24/05/2017, 12:55 PM   #4
XxMadmanxX
Big Clucker
 
Join Date: Mar 2017
Posts: 73
Reputation: 1
Default Re: world spawn

Thanks.
XxMadmanxX is offline   Reply With Quote
Old 24/05/2017, 02:11 PM   #5
saffierr
High-roller
 
saffierr's Avatar
 
Join Date: Jul 2013
Location: GetPlayerGirlHouse(targetplayer);
Posts: 1,154
Reputation: 36
Default Re: world spawn

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.
saffierr is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[HELP] Can't Spawn Veh In Another World TitanZ Scripting Help 2 18/11/2015 03:04 PM
How to set the spawn of the world? Quinten Scripting Help 7 13/05/2014 03:50 PM
cant spawn veh in virtual world 2 Pro_Scriptor Scripting Help 2 18/07/2012 10:50 AM
Character spawn at Center world ? MyLife Help Archive 2 04/11/2010 01:35 PM
help needed for virtual world spawn plz iggy1 Help Archive 8 11/05/2010 10:59 AM


All times are GMT. The time now is 07:35 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.