09.09.2011, 07:55
PHP Code:
CMD:glasses(playerid, o[])
{
new skin = GetPlayerSkin(playerid), glassid;
if(sscanf(o,"i", glassid)) return SendClientMessage(playerid, 0xFFFFFAA,"Syntax: /glasses [1 - 30]");
if(glassid > 30 || glassid < 1) return SendClientMessage(playerid, 0xFFFFFFAA, "(Error) Syntax: /glasses [1 - 30]");
SetPlayerAttachedObject(playerid, glassid, 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, "i", playerid);
return 1;
}