Help attach object with else
#4

PHP код:
new Bandana[MAX_PLAYERS];

COMMAND:bandana(playeridparams[]) // or CMD:mycommand(playerid, params[])
{
    if(
Bandana[playerid] == 0)
    {
        
SetPlayerAttachedObject(playerid01891220.0785340.041857, -0.001727268.9704581.533374269.223754);
        
SendClientMessage(playeridCOLOR_GREEN"Repeat command to deattach object");
        
Bandana[playerid] = 1;
    }
    else
    {
        
RemovePlayerAttachedObject(0);
        
SendClientMessage(playeridCOLOR_GREEN"Repeat command to attach object");
        
Bandana[playerid] = 0;
    }
    return 
1;

Reply


Messages In This Thread
Help attach object with else - by GrOobY - 06.05.2014, 18:30
Re: Help attach object with else - by David (Sabljak) - 06.05.2014, 18:43
Re: Help attach object with else - by GrOobY - 06.05.2014, 18:46
Re: Help attach object with else - by mrtms - 06.05.2014, 19:58
Re: Help attach object with else - by GrOobY - 06.05.2014, 20:14
Re: Help attach object with else - by gekas - 06.05.2014, 20:16
Re: Help attach object with else - by GrOobY - 06.05.2014, 20:18

Forum Jump:


Users browsing this thread: 1 Guest(s)