11.06.2013, 09:45
I am trying to make a Server Tutorial for new players, the first building to show is Cityhall, I want it to show it from the left to the right, but it does not work.
pawn Код:
command(testtutorial, playerid, params[])
{
if(Player[playerid][Adminlevel] == 6)
{
GetPlayerPos(playerid, Player[playerid][LastX], Player[playerid][LastY], Player[playerid][LastZ]);
if(Player[playerid][OnDuty] == 1)
{
GetPlayerDutyWeapons(playerid);
}
else
{
GetPlayerWeapons(playerid);
}
TogglePlayerSpectating(playerid, true);
clearPlayerChat(playerid);
InterpolateCameraPos(playerid, 1513.5331, -1731.3594, 29.1209, 1454.1892, -1731.3594, 29.1209, 30000, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, 1513.5331, -1731.3594, 29.4459, 1454.1892, -1731.3594, 29.4459, 30000, CAMERA_MOVE);
SendClientMessage(playerid, COLOR_ORANGE, ". : : CityHall : : .");
SendClientMessage(playerid, SERVERCOLOR, "This is the CityHall, if you want to buy a house, garage, business this is the place!");
SendClientMessage(playerid, SERVERCOLOR, "If you want to sell a house, garage, business, car or anything, this is also the place!");
SendClientMessage(playerid, SERVERCOLOR, "The property office is located at the top floor and the DMV center on the 1st floor!");
SetTimerEx("CameraTutorial1", 30000, false, "d", playerid);
}
return 1;
}