Hey
Was ist an dem Code falsch?
/*new SSelect[MAX_PLAYERS];
new OldSSkin[MAX_PLAYERS];*/
/*ocmd:clothes(playerid,params[])
{
OldSSkin[playerid] = GetPlayerSkin(playerid);
SSelect[playerid] = 8;
SetPlayerSkin(playerid = 8);
//SetPlayerPos(Da wo er hin soll); //das hätteste mal speichern können....
//SetCameraLookAt(.....);
return 1;
}*/
/*if(newkeys == KEY_SPRINT)
{
if(SSelect[playerid] >= 1)
{
switch(SSelect[MAX_PLAYERS])
{
case 8: {SSelect[playerid] = 9;}
case 9: {SSelect[playerid] = 10;}
default: {SendClientMessage(playerid, COLOR_RED, "Skin gewechselt);}
SetPlayerSkin(playerid, SSelect[playerid]);
}
}
}*/
/*if(newkeys == KEY_FIRE)
{
if(SSelect[playerid] >= 1)
{
SetPlayerSkin(playerid, OldSSkin[playerid]);
SetPlayerpos(x,y,z);
SSelect[playerid] = 0;
OldSSkin[playerid] = 0;
}
}*/
if(newkeys == KEY_SECONDARY_ATTACK)
{
/*if(SSelect[playerid] >= 1)
{
//SetPlayerPos(x,y,zl)
SetPlayerSkin(playerid, SSelect[playerid]);
SSelect[playerid] = 0;
}*/
Danke im vorraus.