24.12.2016, 12:08
PHP код:
new what;
GetSkinEx(LastSkinZ[playerid], classid, what);
LastSkinZ[playerid] = classid;
if(what > 0)
{
if(!firstTime[playerid])
{
firstTime[playerid] = 0;
SetPlayerSkinEx(playerid, currSkin[playerid]);
}
else
{
currSkin[playerid] ++;
SetPlayerSkinEx(playerid, currSkin[playerid]);
}
}
else
{
currSkin[playerid] --;
SetPlayerSkinEx(playerid, currSkin[playerid]);
}
PHP код:
new what;
GetSkinEx(LastSkinZ[playerid], classid, what);
LastSkinZ[playerid] = classid;
if(what > 0)
{
if(!firstTime[playerid])
{
firstTime[playerid] = 1;
SetPlayerSkinEx(playerid, currSkin[playerid]);
}
else
{
currSkin[playerid] ++;
SetPlayerSkinEx(playerid, currSkin[playerid]);
}
}
else
{
currSkin[playerid] --;
SetPlayerSkinEx(playerid, currSkin[playerid]);
}