SetPlayerAttachedObject
#4

if player type twice and for the second time it remove the attach object
pawn Код:
if (strcmp("/santahat", cmdtext, true, 10) == 0)
    {
        if(IsPlayerAttachedObjectSlotUsed(playerid, 3))
        {
            RemovePlayerAttachedObject(playerid, 3);
        }
        if(!IsPlayerAttachedObjectSlotUsed(playerid, 3))
        {
            new pname[24];
            new string[128];
            GetPlayerName(playerid,pname,sizeof(pname));
            format(string,sizeof(string),"[_Christmas_] %s(%d) is wearing a sant hat! You can do it too by typing /santahat",pname,playerid);
            SendClientMessageToAll(COLOR_CYAN,string);
            SetPlayerAttachedObject(playerid, 3, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
        }
        return 1;
    }
Reply


Messages In This Thread
SetPlayerAttachedObject - by [CG]Milito - 06.12.2012, 12:43
Re: SetPlayerAttachedObject - by DaRk_RaiN - 06.12.2012, 13:28
Re: SetPlayerAttachedObject - by [Ro]DuReX - 06.12.2012, 13:41
Re: SetPlayerAttachedObject - by Horrible - 06.12.2012, 13:45
Re: SetPlayerAttachedObject - by Freak@ - 06.12.2012, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)