Sounds getting on my nerves and gates
#3

Quote:
Originally Posted by [DRD]Rodney
Посмотреть сообщение
PlayerPlaySound(i, 1062, 0, 0, 0);
If its a song use this
PlayerPlaySound(i, 1063, 0, 0, 0);
to stop it


To move gate

pawn Код:
new Gate,GateOpen;

Gate=CreateObject(blabla) (this should be on OnGameModeInit)

    if(strcmp(cmdtext,"/CSHClub",true)==0)
    {
        if(strcmp("CSMajor", playersnames) || strcmp("[MF]Shark_killer", playersnames))
        {
            if (GateOpen==0) { MoveObject(Gate,OPENPOSx,OPENPOSy,OPENPOSz, 5);GateOpen=1 }
            else { MoveObject(Gate,CLOSEDPOSx,CLOSEDPOSy,CLOSEDPOSz, 5);GateOpen=0 }
        }
        else SendClientMessage(playerid,0xFFF0000FF,"Your name isnt CSMajor or [MF]Shark_killer!");        
        return 1;
    }
better convention please?
Reply


Messages In This Thread
Sounds getting on my nerves and gates - by CSMajor - 19.08.2010, 17:09
Re: Sounds getting on my nerves and gates - by [DRD]Rodney - 19.08.2010, 17:36
Re: Sounds getting on my nerves and gates - by CSMajor - 19.08.2010, 18:44

Forum Jump:


Users browsing this thread: 1 Guest(s)