Sorry guys, I need more help. -
bartje01 - 31.01.2010
Well, I made a lift and it is working, Kinda.
It is going up and down to fast. Like 1 sec and it is up and then I'm falling down xxD
}
if (strcmp("/pdliftdown", cmdtext, true, 10) == 0)
{
if(GetPlayerColor(playerid) == 0x2641FEAA)
MoveObject(lspdlift,1565.3409,-1635.4077,13.5806,180.1554);
else
SendClientMessage(playerid, 0x33AA33AA, "You are not a cop!");
return 1;
}
if (strcmp("/pdliftup", cmdtext, true, 10) == 0)
{
if(GetPlayerColor(playerid) == 0x2641FEAA)
MoveObject(lspdlift,1565.2141,-1637.4639,28.4021,358.7617);
else
SendClientMessage(playerid, 0x33AA33AA, "You are not a cop!");
return 1;
Thats the scriptt
I'm just asking such things because that is the way how I learn scripting. Asking people is more easy then reading tutorials forme.
Re: Sorry guys, I need more help. -
bartje01 - 31.01.2010
anyone ?
Re: Sorry guys, I need more help. -
[HiC]TheKiller - 31.01.2010
MoveObject(objectid, Float:X, Float:Y, Float:Z,
Float:Speed)
Change your speed down to like 2 or 3, not 180

.
Re: Sorry guys, I need more help. -
bartje01 - 31.01.2010
Quote:
Originally Posted by [HiC
TheKiller ]
MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed)
Change your speed down to like 2 or 3, not 180  .
|
So this MoveObject(lspdlift,1565.2141,-1637.4639,28.4021,358.7617);
Must be: MoveObject(lspdlift,1565.2141,-1637.4639,28.4021,358.7617,2); ?
Re: Sorry guys, I need more help. -
Backwardsman97 - 31.01.2010
Yes. And does your elevator just move up and down? You should just make the x and y the same on both if it does. It would look nicer.
Re: Sorry guys, I need more help. -
bartje01 - 31.01.2010
Then I have this
}
if (strcmp("/pdliftdown", cmdtext, true, 10) == 0)
{
if(GetPlayerColor(playerid) == 0x2641FEAA)
MoveObject(lspdlift,1565.3409,-1635.4077,13.5806,180.1554,2);
else
SendClientMessage(playerid, 0x33AA33AA, "You are not a cop!");
return 1;
}
if (strcmp("/pdliftup", cmdtext, true, 10) == 0)
{
if(GetPlayerColor(playerid) == 0x2641FEAA)
MoveObject(lspdlift,1565.2141,-1637.4639,28.4021,358.7617,2);
else
SendClientMessage(playerid, 0x33AA33AA, "You are not a cop!");
return 1;
Errors:
C:\Users\Bart\Desktop\SAMP\gamemodes\bartmarc.pwn( 336) : warning 202: number of arguments does not match definition
C:\Users\Bart\Desktop\SAMP\gamemodes\bartmarc.pwn( 345) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
Re: Sorry guys, I need more help. -
Backwardsman97 - 31.01.2010
I think you have your rotation in there? Try this.
pawn Код:
if (!strcmp("/pdliftdown", cmdtext, true))
{
if(GetPlayerColor(playerid) == 0x2641FEAA)
{
MoveObject(lspdlift,1565.3409,-1635.4077,13.5806,2.0);
return 1;
}
else
{
SendClientMessage(playerid, 0x33AA33AA, "You are not a cop!");
return 1;
}
}
if (!strcmp("/pdliftup", cmdtext, true) )
{
if(GetPlayerColor(playerid) == 0x2641FEAA)
{
MoveObject(lspdlift,1565.3409,-1635.4077,28.4021,2.0);
return 1;
}
else
{
SendClientMessage(playerid, 0x33AA33AA, "You are not a cop!");
return 1;
}
}
Re: Sorry guys, I need more help. -
bartje01 - 31.01.2010
It is working!!!
Thankyou so much