31.01.2010, 20:41
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.
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.