Quote:
Originally Posted by Alexy_Dramon
Ok follow
On top do it
Код:
public OnGameModeInit()
door1 = CreateObject(2990,1539.30004883,-1628.09997559,16.29999924,0.00000000,0.00000000,270.00000000);//IT'S SHOULD BE CLOSED DOOR
Put this Code in public OnPlayerCommandText(playerid, cmdtext[])
Код:
return 1;
}
if (strcmp("/PDclose", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,1539.30004883,-1628.09997559,16))
MoveObject(door1,1539.30004883,-1628.09997559,16,2);
SendClientMessage(playerid, lightblue, "Hello Officer you have Closed the Gate");
here you will close the Door/Gate
Код:
return 1;
}
if (strcmp("/PDopen", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,1539.00000000,-1638.30004883,16))
MoveObject(door1,1539.00000000,-1638.30004883,16,2);
SendClientMessage(playerid, lightblue, "Hello Officer you have Opened the Gate");
Ok there you have MOVING gate sys
NOTE:Coped it from my Server This is cradit to Me
And it's not A door it's gate but make your Own Moving Door, Like this just change the posX posY posZ
|
I tryed this but failed again. Damn, I am begined scriper, so here are the warnings..
C:\Documents and Settings\Nadi\Desktop\Server\gamemodes\LSPD Door.pwn(35) : error 017: undefined symbol "door1"
C:\Documents and Settings\Nadi\Desktop\Server\gamemodes\LSPD Door.pwn(3
: error 055: start of function body without function header
C:\Documents and Settings\Nadi\Desktop\Server\gamemodes\LSPD Door.pwn(40) : error 021: symbol already defined: "SetGameModeText"
C:\Documents and Settings\Nadi\Desktop\Server\gamemodes\LSPD Door.pwn(42) : error 010: invalid function or declaration
C:\Documents and Settings\Nadi\Desktop\Server\gamemodes\LSPD Door.pwn(9
: error 010: invalid function or declaration
C:\Documents and Settings\Nadi\Desktop\Server\gamemodes\LSPD Door.pwn(100) : error 010: invalid function or declaration
C:\Documents and Settings\Nadi\Desktop\Server\gamemodes\LSPD Door.pwn(103) : error 010: invalid function or declaration
C:\Documents and Settings\Nadi\Desktop\Server\gamemodes\LSPD Door.pwn(105) : error 054: unmatched closing brace ("}")
C:\Documents and Settings\Nadi\Desktop\Server\gamemodes\LSPD Door.pwn(106) : error 010: invalid function or declaration
C:\Documents and Settings\Nadi\Desktop\Server\gamemodes\LSPD Door.pwn(10
: error 010: invalid function or declaration
C:\Documents and Settings\Nadi\Desktop\Server\gamemodes\LSPD Door.pwn(112) : error 010: invalid function or declaration
C:\Documents and Settings\Nadi\Desktop\Server\gamemodes\LSPD Door.pwn(115) : error 010: invalid function or declaration
C:\Documents and Settings\Nadi\Desktop\Server\gamemodes\LSPD Door.pwn(117) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
13 Errors.