SA-MP Forums Archive
Enter Vehicle Show cammera [+REP] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Enter Vehicle Show cammera [+REP] (/showthread.php?tid=532342)



Enter Vehicle Show cammera [+REP] - arlindi - 17.08.2014

https://www.youtube.com/watch?v=WxEZI_7DGzI Look this video in minute 1:54 Please
Tell mee also how to create it.
OnPlayerenterCheckpoint he cant drive it just set cammera or meaby set it as passager
Help mee please I WILL REP YOU


Re: Enter Vehicle Show cammera [+REP] - arlindi - 17.08.2014

AnyOne?


Re: Enter Vehicle Show cammera [+REP] - SnG.Scot_MisCuDI - 17.08.2014

Things you will need to read:
OnPlayerEnterCheckPoint
TogglePlayerSpectating
PlayerSpectateVehicle

Also, dont bump your thread so quickly, give us time to respond.


Re: Enter Vehicle Show cammera [+REP] - arlindi - 17.08.2014

I cant do it tell mee more details Please


Re: Enter Vehicle Show cammera [+REP] - SnG.Scot_MisCuDI - 17.08.2014

Quote:
Originally Posted by arlindi
Посмотреть сообщение
I cant do it tell mee more details Please
Are you using Streamer?
Or are you using only one CheckPoint in your server


Re: Enter Vehicle Show cammera [+REP] - arlindi - 17.08.2014

https://sampforum.blast.hk/showthread.php?tid=525017 i am using this.

PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(
team[playerid] == TEAM_HUMAN)
    {
        new 
string[256];
        if(
Map[EvacType] == 1)
        {
            
TogglePlayerSpectating(playerid1);
            
PlayerSpectateVehicle(playerid1);
            
//SetPlayerInterior(playerid,0);
            //SetPlayerPos(playerid,-1408.2051,-970.8841,198.9738);
            
format(string,sizeof(string), ""COL_WHITE"["COL_BLUE"HUMAN"COL_WHITE"] %s Has rached to evac point with "COL_RED"%d kills"COL_WHITE" in dhis round! He will come human next round!",PlayerName(playerid), pInfo[playerid][pKillsIn1Map]);
            
SendClientMessageToAll(-1,string);
            
DisablePlayerCheckpoint(playerid);
            
CurePlayer(playerid);
            
GivePlayerXP(playerid,50);
            
pInfo[playerid][pEvac]++;
            
pInfo[playerid][pCoins]++;
            
//SetPlayerColor(playerid,COLOR_YELLOW);
        
}

        if(
Map[EvacType] == 2)
        {
            
SetPlayerPos(playerid,3024.4983,447.9744,14.7813);
            
SetPlayerInterior(playerid,0);
            
format(string,sizeof(string), ""COL_WHITE"["COL_BLUE"HUMAN"COL_WHITE"] %s Has rached to evac point with "COL_RED"%d kills"COL_WHITE" in dhis round! He will come human next round!",PlayerName(playerid), pInfo[playerid][pKillsIn1Map]);
            
SendClientMessageToAll(-1,string);
            
DisablePlayerCheckpoint(playerid);
            
CurePlayer(playerid);
            
GivePlayerXP(playerid,50);
            
pInfo[playerid][pEvac]++;
            
pInfo[playerid][pCoins]++;
            
//SetPlayerColor(playerid,COLOR_YELLOW);
        
}

          if(
Map[EvacType] == 3)
        {
            
SetPlayerPos(playerid,285.5,2510.30004882817,121.5);
            
SetPlayerInterior(playerid,0);
            
format(string,sizeof(string), ""COL_WHITE"["COL_BLUE"HUMAN"COL_WHITE"] %s Has rached to evac point with "COL_RED"%d kills"COL_WHITE" in dhis round! He will come human next round!",PlayerName(playerid), pInfo[playerid][pKillsIn1Map]);
            
SendClientMessageToAll(-1,string);
            
DisablePlayerCheckpoint(playerid);
            
CurePlayer(playerid);
            
GivePlayerXP(playerid,50);
            
pInfo[playerid][pEvac]++;
            
pInfo[playerid][pCoins]++;
            
//SetPlayerColor(playerid,COLOR_YELLOW);
        
}

        if(
Map[EvacType] == 4)
        {
            
SetPlayerPos(playerid,1456.3000488281,-1126,427.10000610352);///By Fahad
            
SetPlayerInterior(playerid,0);
            
format(string,sizeof(string), ""COL_WHITE"["COL_BLUE"HUMAN"COL_WHITE"] %s Has rached to evac point with "COL_RED"%d kills"COL_WHITE" in dhis round! He will come human next round!",PlayerName(playerid), pInfo[playerid][pKillsIn1Map]);
            
SendClientMessageToAll(-1,string);
            
DisablePlayerCheckpoint(playerid);
            
CurePlayer(playerid);
            
GivePlayerXP(playerid,50);
            
pInfo[playerid][pEvac]++;
            
pInfo[playerid][pCoins]++;
            
GivePlayerWeapon(playerid,46,1);
            
//SetPlayerColor(playerid,COLOR_YELLOW);

        
}
    }
    return 
1;

I mode it and dont work.


Re: Enter Vehicle Show cammera [+REP] - SnG.Scot_MisCuDI - 17.08.2014

PlayerSpectateVehicle(playerid, vehicleid);
You must use the ID of the vehicle. You can see that by using /dl in-game.


Re: Enter Vehicle Show cammera [+REP] - arlindi - 17.08.2014

I do it anddddd i go in vehicle but when i go in it he spawn mee dirrectly


Re: Enter Vehicle Show cammera [+REP] - arlindi - 17.08.2014

Bump. AnyOne?


Re: Enter Vehicle Show cammera [+REP] - arlindi - 18.08.2014

OmOmg AnyOne?