problem, help me
#8

pawn Код:
//--------------------[bush]-----------------------------

        if ( strcmp( "/bush", cmdtext, true,5 ) )
        {
          tmp = strtok(cmdtext, idx);
          if(!strlen(tmp))
          {
         
          return 1;
          }
     

       
                if ( BushEnabled[playerid] )
                {
               

                    DestroyObject( BushObject[playerid] );
                    SendClientMessage(playerid, 0xDEEE20FF, "The Bush is Disabled.");
                    BushEnabled[playerid] = false;
                    return 1;
                }
               
                  if(pAdmin[playerid] >= 1)
{
                    BushObject [playerid] = CreateObject( 800, 0, 0, 0, 0, 0, 0 );
                    BushEnabled[playerid] = true;
              SendClientMessage(playerid, 0xDEEE20FF, "The Bush is Enabled.");
                    AttachObjectToPlayer( BushObject[playerid], playerid, 0, 0, 0, 0, 0, 0 );
}
return 1;
}
Reply


Messages In This Thread
problem, help me - by Pinehole - 16.10.2009, 02:57
Re: problem, help me - by Pinehole - 16.10.2009, 03:28
Re: problem, help me - by vafapoor - 16.10.2009, 03:32
Re: problem, help me - by Pinehole - 16.10.2009, 03:35
Re: problem, help me - by Pghpunkid - 16.10.2009, 06:36
Re: problem, help me - by Pinehole - 16.10.2009, 13:12
Re: problem, help me - by Pghpunkid - 16.10.2009, 18:54
Re: problem, help me - by Peter_Corneile - 16.10.2009, 19:40
Re: problem, help me - by Pghpunkid - 17.10.2009, 01:38

Forum Jump:


Users browsing this thread: 1 Guest(s)