How to make moving gate
#1

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
Reply
#2

// 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;
}
Reply
#3

Also it's not SentClientMessage
It's:
pawn Код:
SendClientMessage(playerid, COLOR_GREEN, "Welcome to my server!");
Reply
#4

gate1 = CreateObject(objectid,X,Y,Z,RX,RY,RZ);

what is RX,RY,RZ second gate ?
Reply
#5

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);
Reply
#6

Dude, first STOP THE DOUBLE POST AND SPAM.
Reply
#7

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
Reply
#8

an example by my gm
pawn Код:
new pdgate1;
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);
        }
Reply
#9

Already PMed him Code.
Reply
#10

tnx is working
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)