How to make moving gate -
doreto - 03.09.2010
pls help me how to make
C:\Users\PREDATOR SERVICE\Desktop\samp test servar\Samp 0.3b servar for real\filterscripts\gata1.pwn(97) : error 017: undefined symbol "SentClientMessage"
C:\Users\PREDATOR SERVICE\Desktop\samp test servar\Samp 0.3b servar for real\filterscripts\gata1.pwn(103) :
error 017: undefined symbol "SentClientMessage"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
pls help
Re: How to make moving gate -
[UG]Scripter - 03.09.2010
// AT Top of script.
new gate1;
// Under OnGameModeInit()
gate1 = CreateObject(objectid,X,Y,Z,RX,RY,RZ);
if(strcmp(cmdtext, "/opengate", true) == 0)
{
MoveObject(gate1,X,Y,Z,GateSpeed);
return 1;
}
Re: How to make moving gate -
Agent Smith - 03.09.2010
Also it's not SentClientMessage
It's:
pawn Код:
SendClientMessage(playerid, COLOR_GREEN, "Welcome to my server!");
Re: How to make moving gate -
doreto - 03.09.2010
gate1 = CreateObject(objectid,X,Y,Z,RX,RY,RZ);
what is RX,RY,RZ second gate ?
Re: How to make moving gate -
doreto - 03.09.2010
this is coordinates
CreateObject(980, 2482.7788085938, -1687.9782714844, 15.281204223633, 0, 0, 0);
CreateObject(980, 2471.5874023438, -1687.9381103516, 15.281204223633, 0, 0, 0);
Re: How to make moving gate -
Thebest96 - 03.09.2010
Dude, first STOP THE DOUBLE POST AND SPAM.
Re: How to make moving gate -
Voldemort - 03.09.2010
CreateObject(objectid,X,Y,Z,RX,RY,RZ);
X - Position in X coordinates
Y - Position in Y coordinates
Z - Position in Z coordinates
XR - Rotation in X coordinates
YR - Rotation in Y coordinates
ZR - Rotation in Z coordinates
Re: How to make moving gate -
Mr.Obscure - 03.09.2010
an example by my gm
pawn Код:
public GateClose(playerid)
{
MoveDynamicObject(pdgate1,-1571.80, 661.16, 6.08, 0.97);
PlayerPlaySound(playerid, 1153, -1571.80, 661.16, 6.08);
return 1;
}
pawn Код:
pdgate1 = CreateDynamicObject(971, -1571.80, 661.16, 6.08, 0.00, 360.00, 90.00, -1, 0, -1, 500);
pawn Код:
if(!strcmp(cmdtext, "/cancello", true)) // From LA RP
{
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3)
{
if (PlayerToPoint(15, playerid,-1571.80, 661.16, 6.08))
{
MoveDynamicObject(pdgate1,-1571.80, 654.16, 6.08, 0.8);
SetTimer("GateClose", 12000, 0);
SendClientMessage(playerid, COLOR_BLUE,"Il cancello и aperto e si chiuderа fra 7 secondi.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s prende il telecomando e apre il cancello.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
PlayerPlaySound(playerid, 1153, -1571.80, 661.16, 6.08);
}
Re: How to make moving gate -
[UG]Scripter - 03.09.2010
Already PMed him Code.
Re: How to make moving gate -
doreto - 03.09.2010
tnx is working