SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 24/05/2017, 11:35 AM   #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, 11:43 AM   #2
Bolex_
Gangsta
 
Join Date: Aug 2015
Location: Republic Of Croatia
Posts: 587
Reputation: 113
Default Re: world spawn

Code:
SetPlayerVirtualWorld( playerid, 0);
__________________
Bolex_ is offline   Reply With Quote
Old 24/05/2017, 11:51 AM   #3
RxErT
Huge Clucker
 
RxErT's Avatar
 
Join Date: May 2016
Location: SA:MP Lemon
Posts: 249
Reputation: 12
Default Re: world spawn

PHP Code:
SetPlayerInterior(playeridinteriorid); // This would change player's interior 
SetPlayerVirtualWorld(playeridvirtual=0(normal)); and this for player's world... 
__________________
Filterscript:[UPDATED] DM Event [Friendly, Funny, Controllable]
Snippet:Whisper and Car whisper commands, controllable
Discord: Flofey#8478
Github: RxErT's profile
Working-on: Administration script Based on SQLite
Love Quote: "He stepped down, trying not to look long at her, as if she were the sun, yet he saw her like the sun, even without looking." ~Leo Tolstoy - Anna Karenina
RxErT is offline   Reply With Quote
Old 24/05/2017, 11:55 AM   #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, 01:11 PM   #5
saffierr
High-roller
 
saffierr's Avatar
 
Join Date: Jul 2013
Location: GetPlayerGirlHouse(targetplayer);
Posts: 1,159
Reputation: 37
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 02:04 PM
How to set the spawn of the world? Quinten Scripting Help 7 13/05/2014 02:50 PM
cant spawn veh in virtual world 2 Pro_Scriptor Scripting Help 2 18/07/2012 09:50 AM
Character spawn at Center world ? MyLife Help Archive 2 04/11/2010 12:35 PM
help needed for virtual world spawn plz iggy1 Help Archive 8 11/05/2010 09:59 AM


All times are GMT. The time now is 01:48 PM.


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