19.12.2018, 03:02
Try this and see if this has any effect:
PHP код:
CMD:gang(playerid, params[])
{
new paraminteger;
if(!sscanf(params, "'skin'I(-1)", paraminteger))
{
if(paraminteger == -1) return SendClientMessage(playerid, -1, "Usage: /gang skin <id>");
if(!GANGINFO[playerid][ingang]) return SendClientMessage(playerid, COLOR_ERROR, "You are not in a gang");
if(GetPlayerMoney(playerid) < MIN_CASH_TO_CHANGE_SKIN) return SendClientMessage(playerid, COLOR_ERROR, "You don't have enough money");
switch(paraminteger)
{
case 41, 55, 63, 85, 102 .. 110, 114 .. 117, 163 .. 165, 265 .. 267, 269 .. 271, 284 .. 286: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID");
default:
{
if(!(0 <= paraminteger <= 299)) return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID");
GANGINFO[playerid][gskin] = paraminteger;
SetPlayerSkin(playerid, paraminteger);
}
}
}
else SendClientMessage(playerid, COLOR_ERROR, "Usage: /gang <...> ");
return 1;
}