06.01.2018, 19:17
(
Последний раз редактировалось RogueDrifter; 06.01.2018 в 19:52.
)
Okay i got it, it does return 0 if no skin is used, cmd used in test:
so i came to the conclusion that this should work thanks to kalcor for this of course wouldn't have been possible without GetPlayerCustomSkin because GetPlayerSkin returns the base id.
EDIT: A quick suggestion please please! give us the ability to hide the spam of artwork:crc in the server logs my logs reached 6 mgbs on the offline server...
PHP код:
CMD:getskin(playerid,params[])
{
new pID,zstring[5];
if (sscanf(params, "r", pID)) return SendClientMessage(playerid, COLOR_GRAD1, "INFO: /getskin [PlayerID/Name]");
if (pID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GRAD1, "Player not found.");
format(zstring,sizeof(zstring),"%d",GetPlayerCustomSkin(pID));
SendClientMessage(playerid,-1,zstring);
return 1;
}
PHP код:
stock IsPlayerUsingCustomSkin(playerid)
{
if(GetPlayerCustomSkin(playerid) <=0) return 0;//<= just for sanity checks but ==0 also works.
else return 1;
}

