[HELP] Gates
#4

Код:
if(strcmp(cmdtext, "/open", true) == 0)
 { 
   MoveObject(gate, cordX, cordY, cordZ, speed); // Normally speed 1 is enough | For coords take the coords of your opened gate
   SendClientMessage(playerid, color, "Gate opened!");
 }
Код:
if(strcmp(cmdtext, "/close'", true) == 0)
 { 
   MoveObject(gate, cordX, cordY, cordZ, speed); // Normally speed 1 is enough | For coords take the coords of your closed gate
   SendClientMessage(playerid, color, "Gate closed!");
 }
Use "IsPlayerInRangeOfPoint" or you will be able to open/close it in whole San Andreas.
Reply


Messages In This Thread
[HELP] Gates - by Xtreme-Nicole - 09.07.2011, 17:26
Re: [HELP] Gates - by MoroDan - 09.07.2011, 17:52
Re: [HELP] Gates - by Xtreme-Nicole - 10.07.2011, 11:24
Re : [HELP] Gates - by Steeve_Smith - 10.07.2011, 11:32
Re: [HELP] Gates - by Ash. - 10.07.2011, 11:33

Forum Jump:


Users browsing this thread: 2 Guest(s)