07.11.2014, 13:47
hey guys,
i got Zombies vs human mode and there is option to create your own class
like skin , weapons , abillity ..
that is my code:
case CUSTOMCLASS_SKIN:
{
if(response)
{
if(!strcmp(inputtext, "67", true))
SendClientMessage(playerid,COLOR_ROJO,"This Skin is not allowed !");
}
else
{
new SkinIDInText[100];
format(SkinIDInText,sizeof(SkinIDInText),"%s",inpu ttext);
SetPlayerSkin(playerid,strval(inputtext));
playerskin = GetPlayerSkin(playerid);
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"pSkin",playerskin);
pInfo[playerid][pSkin] = playerskin;
INI_Close(File);
}
return 1;
}
now i want to do that if someone choose skin id 67 he will get error , it's working but cant choose other skins too
it's just dont change the skin
help ?
i got Zombies vs human mode and there is option to create your own class
like skin , weapons , abillity ..
that is my code:
case CUSTOMCLASS_SKIN:
{
if(response)
{
if(!strcmp(inputtext, "67", true))
SendClientMessage(playerid,COLOR_ROJO,"This Skin is not allowed !");
}
else
{
new SkinIDInText[100];
format(SkinIDInText,sizeof(SkinIDInText),"%s",inpu ttext);
SetPlayerSkin(playerid,strval(inputtext));
playerskin = GetPlayerSkin(playerid);
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"pSkin",playerskin);
pInfo[playerid][pSkin] = playerskin;
INI_Close(File);
}
return 1;
}
now i want to do that if someone choose skin id 67 he will get error , it's working but cant choose other skins too
it's just dont change the skin
help ?