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?