Commands with different skins
#1

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

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

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

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?
Reply
#5

Try put else if for second if statement.
Reply
#6

don't works
but thanks for answer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)