SA-MP Forums Archive
Commands with different skins - 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: Commands with different skins (/showthread.php?tid=414123)



Commands with different skins - lcp9 - 08.02.2013

if(strcmp(cmdtext,"/work",true)==0)
{
if(skin == 0)
{
ShowPlayerDialog(playerid,66,DIALOG_STYLE_LIST,"wh y work that not","please help","ok","oke");
return 1;
}
if(skin == 29)
{
ShowPlayerDialog(playerid,77,DIALOG_STYLE_LIST,"no t working","why?","ok","OK");
}
SendClientMessage(playerid,BLAU,"why?");
return 1;
}
at the top :
new skin;


i want to if i am skin 0 i want to see the first dialog and if i am 29 i want to see the second dialog and if i'm not 29 or 0 i want to see nothing


Re: Commands with different skins - RajatPawar - 08.02.2013

Use this to see if a skin is some certain skin:
pawn Код:
if(GetPlayerSkin(playerid)==29) //Show second dialog.
if(GetPlayerSkin(playerid)==0 //Show first dialog.



AW: Commands with different skins - lcp9 - 08.02.2013

Thanks for fast answer i want to lock if it's work.


AW: Commands with different skins - lcp9 - 08.02.2013

if(strcmp(cmdtext,"/job",true)==0)
{
if(GetPlayerSkin(playerid)==29)return ShowPlayerDialog(playerid,66,DIALOG_STYLE_LIST,"wh y work that not","please help","ok","oke");
if(GetPlayerSkin(playerid)==0)return ShowPlayerDialog(playerid,77,DIALOG_STYLE_LIST,"no t working","why?","ok","OK");
return 1;
}

don't work
did i do mistakes?


Re: Commands with different skins - B-Matt - 08.02.2013

Try put else if for second if statement.


AW: Commands with different skins - lcp9 - 08.02.2013

don't works
but thanks for answer