world spawn
#1

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
Reply
#2

Код:
SetPlayerVirtualWorld( playerid, 0);
Reply
#3

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

Thanks.
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)