Any1 plz??????? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Any1 plz??????? (
/showthread.php?tid=273228)
Any1 plz??????? -
jot16 - 31.07.2011
Can some1 tell me how to make a menu on spawns.like when an player spawn they have 4 choices to choose from.and also their positions plz.
plz get me the code.
Respuesta: Any1 plz??????? -
RatHack - 31.07.2011
What u want to put in the 4 options?
Re: Any1 plz??????? -
jot16 - 31.07.2011
4 different classes.for ex:groove Gang.
Respuesta: Any1 plz??????? -
RatHack - 31.07.2011
Do you want to show the Skin id? or just the Menu?
Re: Any1 plz??????? -
jot16 - 31.07.2011
something like this.
Re: Any1 plz??????? -
killanator10 - 31.07.2011
PILOTS LFIFE
Respuesta: Any1 plz??????? -
RatHack - 31.07.2011
pawn Код:
// At the top
#define SKINMENU 1337
public OnPlayerSpawn(playerid)
{
ShowPlayerDialog(playerid, SKINMENU, DIALOG_STYLE_LIST, "Skin Selection Menu", "Groove\nBallas\bAztecas\nVagos","Select","Cancel");
return 1;
}
public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[])
{
if(dialogid == SKINMENU && response)
{
switch(listitem)
{
case 0:
{
SetPlayerPos(playerid, //SPAWN COORDINATES);
GivePlayerWeapon(playerid, //ID, //AMMO);
SetPlayerSkin(playerid, //SKIN ID);
}
case 1:
{
SetPlayerPos(playerid, //SPAWN COORDINATES);
GivePlayerWeapon(playerid, //ID, //AMMO);
SetPlayerSkin(playerid, //SKIN ID);
}
case 2:
{
SetPlayerPos(playerid, //SPAWN COORDINATES);
GivePlayerWeapon(playerid, //ID, //AMMO);
SetPlayerSkin(playerid, //SKIN ID);
}
case 3:
{
SetPlayerPos(playerid, //SPAWN COORDINATES);
GivePlayerWeapon(playerid, //ID, //AMMO);
SetPlayerSkin(playerid, //SKIN ID);
}
}
return 1;
}
return 0;
}
Re: Any1 plz??????? -
Shockey HD - 31.07.2011
OnPlayerConnect create a dialog,
pawn Код:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Select Spawn","Spawn 1\nSpawn 2\nSpawn 3","Goto", "");
then under OnDialogResponse
pawn Код:
if(dialogid == 1)
{
if(response)
{
if(listitem == 0)
{
SetPlayerPos(playerid,x,y,z);
SetPlayerSkin(playereid,//Skin);
}
if(listitem == 1)
{
SetPlayerPos(playerid,//Location);
SetPlayerSkin(playereid,//Skin);
}
}