tut screen?
#1

hello i want to make an tut for my server.
one with an screen that changes every 10 seconds but how do i do this?

i got some coords of the screen places
Код:
1421.9918,476.9649,91.7241,161.5042,0,0);
2468.1089,137.7119,134.0047,118.2917,0,0); 
33.1230,1248.1548,152.2349,143.3847,29,42);
-794.3657,1679.9799,117.2407,169.5101,29,42);
Reply
#2

Ok, there are a few problems with the coordinates that you have provided. See my below script:

Put this in the top of your script:
pawn Код:
new Timer0;
new Timer1;
new Timer2;
new Timer3;
forward tut0(playerid);
forward tut1(playerid);
forward tut2(playerid);
forward tut3(playerid);
Put this under onplayerconnect

pawn Код:
Timer0 = SetTimerEx("tut0",10000,false, "i", playerid);
Place all of these public functions anywhere in your script but not inside any items:

pawn Код:
public tut0(playerid)
{
    SetPlayerCameraPos(playerid, 1421.9918,476.9649,91.7241);
    SetPlayerCameraLookAt(playerid, 1383.8921,2185.5471,11.0234); //Stand in a position of what you want the camera to look at. (Stand infront of where your camera pos it)
    KillTimer(Timer0);
    Timer0 = SetTimerEx("tut1",10000,false, "i", playerid);
    return 1;
}
public tut1(playerid)
{
    SetPlayerCameraPos(playerid, 2468.1089,137.7119,134.0047,118.2917,0,0););
    SetPlayerCameraLookAt(playerid, 1383.8921,2185.5471,11.0234); //Stand in a position of what you want the camera to look at. (Stand infront of where your camera pos it)
    KillTimer(Timer1);
    Timer1 = SetTimerEx("tut2",5000,false, "i", playerid);
    return 1;
}
public tut2(playerid)
{
    SetPlayerCameraPos(playerid, 33.1230,1248.1548,152.2349);
    SetPlayerCameraLookAt(playerid, 1408.3383,2210.8264,23.7940); //Stand in a position of what you want the camera to look at. (Stand infront of where your camera pos it)
    KillTimer(Timer2);
    Timer2 = SetTimerEx("tut3",5000,false, "i", playerid);
    return 1;
}
public tut3(playerid)
{
    SetPlayerCameraPos(playerid, -794.3657,1679.9799,117.2407);
    SetPlayerCameraLookAt(playerid, 1408.3383,2210.8264,23.7940); //Stand in a position of what you want the camera to look at. (Stand infront of where your camera pos it)
    KillTimer(Timer0);
    KillTimer(Timer1);
    KillTimer(Timer2);
    KillTimer(Timer3);
    return 1;
}
Reply
#3

okay thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)