door1;
public OnGameModeInit()
door1 = CreateObject(2990,1539.30004883,-1628.09997559,16.29999924,0.00000000,0.00000000,270.00000000);//IT'S SHOULD BE CLOSED DOOR
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");
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");

|
oh i don't know how make it's open/closed with F i only know how make it OPen/close with CMD
![]() |
public OnPlayerKeyStateChange(playerid, oldkeys, newkeys)
{
if(newkeys & KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid,2,x,y,z)
{
MoveObject(blahblah);
}
return 1;
}
return 1;
}
|
can you give me the location of the place or cordinates of the door i can make them working like
when a player or check is near the doors if he prees f the doors will open and again f the doors will close |
|
Ok follow
On top do it Код:
door1; Код:
public OnGameModeInit()
door1 = CreateObject(2990,1539.30004883,-1628.09997559,16.29999924,0.00000000,0.00000000,270.00000000);//IT'S SHOULD BE CLOSED DOOR
Код:
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");
Код:
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");
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 |
: error 055: start of function body without function header
: error 010: invalid function or declaration
: error 010: invalid function or declaration|
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 headerC:\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 declarationC:\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 declarationC:\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. |
#pragma tabsize 0