Enter Vehicle Show cammera [+REP]
#1

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
Reply
#2

AnyOne?
Reply
#3

Things you will need to read:
OnPlayerEnterCheckPoint
TogglePlayerSpectating
PlayerSpectateVehicle

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

I cant do it tell mee more details Please
Reply
#5

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
Reply
#6

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.
Reply
#7

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

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

Bump. AnyOne?
Reply
#10

OmOmg AnyOne?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)