17.04.2012, 21:56
hey i have this code for example:
it rotates when i open and close the gates... many people gave me just this
but i just don't understand. can anyone please help me with this... correct my code?
I did update F Streamer
pawn Код:
//agate
if (strcmp("/agate", cmdtext, true, 10) == 0)
{
if(pInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid, COLOR_RED, "You are not an Administrator.");
if(aGateOpened == 0)
{
F_MoveObject(agate,-290.24792480469, 1507.5504150391, 76.0495986938, 2.0);
F_MoveObject(agate2,-314.01354980469, 1507.3190917969, 76.0570373535, 2.0);
SendClientMessage(playerid, COLOR_GREEN, "Admin Main Gate: Opened.");
aGateOpened = 1;
}
else
{
F_MoveObject(agate,-298.23571777344, 1507.4790039063, 76.0495986938, 2.0);
F_MoveObject(agate2,-306.16729736328, 1507.4191894531, 76.057037353516, 2.0);
SendClientMessage(playerid, COLOR_RED, "Admin Main Gate: Closed.");
aGateOpened = 0;
}
return 1;
}
Код:
(objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0)
I did update F Streamer


