SA-MP Forums Archive
Load map which the player wants (Rep +1) - 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: Load map which the player wants (Rep +1) (/showthread.php?tid=336198)



Load map which the player wants (Rep +1) - MichaelProPlayer - 21.04.2012

Hi I want a script like this:

When the player joins a playerdialog comes there will be 2 options.Like NOOBS and PROS.If he selects NOOBS then a map will load and if he selects PROS then another map will load.PROS cannot see NOOBS map and NOOBS cannot see PROS Map.... Is that possible??


Re: Load map which the player wants (Rep +1) - Roel - 21.04.2012

Yes, you should use CreatePlayerObject instead of CreateObject.


Re: Load map which the player wants (Rep +1) - MichaelProPlayer - 21.04.2012

Thanks But I NEED TO ADD Player in CreateObject for all.. and My map is sooooo long It will take an year to finish.Got any ideas??


Re: Load map which the player wants (Rep +1) - WarriorEd22 - 21.04.2012

Maybe you're talking about virtual worlds?


Re: Load map which the player wants (Rep +1) - Roel - 21.04.2012

Quote:
Originally Posted by MichaelProPlayer
Посмотреть сообщение
Thanks But I NEED TO ADD Player in CreateObject for all.. and My map is sooooo long It will take an year to finish.Got any ideas??
There are converters for that.
You also can just do CTRL+H and input CreateObject( > CreatePlayerObject(playerid,


Re: Load map which the player wants (Rep +1) - MichaelProPlayer - 21.04.2012

Код:
public OnPlayerSpawn(playerid)
{
ShowPlayerDialog(playerid,87,DIALOG_STYLE_LIST,"Select want you want to play"," TDM\r\n2. STUNT\r\n3","Select", "Cancel");
}
Can someone make OnDialogResponse ?? Plz


Re: Load map which the player wants (Rep +1) - Roel - 21.04.2012

pawn Код:
if(dialogid == 87 && response)
{
if(listitem == 0)
{
 // map
}
else if(listitem == 1)
{
 // map
}
return 1;
}
Put this in OnPlayerDialogResponse


Re: Load map which the player wants (Rep +1) - MichaelProPlayer - 21.04.2012

Dude you are awesome Thankyou very very much.And lol nice forums Michael jackson