SetPlayerAttachedObject
#1

Hello!

My problem is with "SetPlayerAttachedObject" function, When I type /santahat, it gives you a santa hat -.-' but it just dissapear after 2 seconds. How can i avoid that? + how can i remove the hat with the same command ?(/santahat)

PHP код:
     if (strcmp("/santahat"cmdtexttrue10) == 0)
    {
        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(playerid31906520.1200000.040000, -0.00350001001001.41.41.4);
        return 
1;
    } 
Thanks in advance
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)