08.09.2011, 23:41
pawn Code:
CMD:Glasses(playerid, params[])
{
new glasses = strval(params);
new skin = GetPlayerSkin(playerid);
if(!glasses || glasses > 30) return SendClientMessage(playerid, 0xFFFFFFAA, "(Error) Syntax: /glasses [1 - 30]");
new glasseid = CommonRed + (glasses - 1);
SetPlayerHoldingObject(playerid, glasseid, 2, SkinOffSet[skin][0], SkinOffSet[skin][1], SkinOffSet[skin][2], SkinOffSet[skin][3], SkinOffSet[skin][4], SkinOffSet[skin][5]);
TextDrawShowForPlayer(playerid, MsgBox);
SetTimerEx("Hide", 3500, false, "d", playerid);
return 1;
}