ocmd:weiter(playerid,params[])
{
new skin;
if(IsPlayerInRangeOfPoint(playerid,4,217.4791,-98.6926,1005.2578))
{
if(skin==0)
{
SetPlayerSkin(playerid,101);
skin = 1;
}
else if(skin==1)
{
SetPlayerSkin(playerid,11);
skin = 2;
}
else if(skin==2)
{
SetPlayerSkin(playerid,13);
skin = 3;
}
else if(skin==3)
{
SetPlayerSkin(playerid,15);
skin = 4;
}
else if(skin==4)
{
SetPlayerSkin(playerid,18);
skin = 5;
}
else if(skin==5)
{
SetPlayerSkin(playerid,19);
skin = 6;
}
else if(skin==6)
{
SetPlayerSkin(playerid,21);
skin = 7;
}
else if(skin==7)
{
SetPlayerSkin(playerid,26);
skin = 8;
}
else if(skin==8)
{
SetPlayerSkin(playerid,29);
skin = 9;
}
else if(skin==9)
{
SetPlayerSkin(playerid,28);
skin = 10;
}
else if(skin==10)
{
SetPlayerSkin(playerid,45);
skin = 11;
}
else if(skin==11)
{
SetPlayerSkin(playerid,47);
skin = 12;
}
else if(skin==12)
{
SetPlayerSkin(playerid,55);
skin = 13;
}
else if(skin==13)
{
SetPlayerSkin(playerid,60);
skin = 14;
}
else if(skin==14)
{
SetPlayerSkin(playerid,66);
skin = 15;
}
else if(skin==15)
{
SetPlayerSkin(playerid,83);
skin = 16;
}
else if(skin==16)
{
SetPlayerSkin(playerid,89);
skin = 17;
}
else if(skin==17)
{
SetPlayerSkin(playerid,97);
skin = 18;
}
else if(skin==18)
{
SetPlayerSkin(playerid,98);
skin = 20;
}
else if(skin==20)
{
SetPlayerSkin(playerid,78);
skin = 0;
}
}
if(!IsPlayerInRangeOfPoint(playerid,4,217.4791,-98.6926,1005.2578))
{
SendClientMessage(playerid,ROT,"Du bist nicht im Skin Laden!");
}
return 1;
}
Danke schon mal im Vorraus mfg The.Stolpmaan
//Edit : man bekommt immer nur den ersten Skin egal wie viel mal man /weiter eingibt ...