SA-MP Forums Archive
Can a player enter a checkpoint with vehicle? - 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: Can a player enter a checkpoint with vehicle? (/showthread.php?tid=322679)



Can a player enter a checkpoint with vehicle? - nuriel8833 - 03.03.2012

I know this is a really really dumb question.. but my SA:MP hadnt been working for 1.5 years.
Is it possible to enter a checkpoint with a vehicle? (NOT race checkpoint,normal checkpoint)
Thanks 4 help


Re: Can a player enter a checkpoint with vehicle? - T0pAz - 03.03.2012

I don't think so. Why don't you test it our yourself?

Edit: I see your SA-MP is not working. My bad.


Re: Can a player enter a checkpoint with vehicle? - nuriel8833 - 03.03.2012

Quote:
Originally Posted by T0pAz
Посмотреть сообщение
I don't think so. Why don't you test it our yourself?

Edit: I see your SA-MP is not working. My bad.
Anyone that knows for sure?


Re: Can a player enter a checkpoint with vehicle? - Babul - 03.03.2012

yes:
pawn Код:
public OnPlayerEnterCheckpoint(playerid){
    GameTextForPlayer(playerid,"CP",4000,4);
    return 1;
}

CMD:stunt0(playerid,params[]){
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid,X,Y,Z);
    CPPosX[0][0]=X;
    CPPosY[0][0]=Y;
    CPPosZ[0][0]=Z;
//  Checkpoint[0][0]=CreateDynamicCP(X,Y,Z,5,0,0,-1,200);
    SetPlayerCheckpoint(playerid,X,Y,Z,5);
    return 1;
}
works both on foot and in a vehicle


Re: Can a player enter a checkpoint with vehicle? - nuriel8833 - 03.03.2012

Quote:
Originally Posted by Babul
Посмотреть сообщение
yes:
pawn Код:
public OnPlayerEnterCheckpoint(playerid){
    GameTextForPlayer(playerid,"CP",4000,4);
    return 1;
}

CMD:stunt0(playerid,params[]){
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid,X,Y,Z);
    CPPosX[0][0]=X;
    CPPosY[0][0]=Y;
    CPPosZ[0][0]=Z;
//  Checkpoint[0][0]=CreateDynamicCP(X,Y,Z,5,0,0,-1,200);
    SetPlayerCheckpoint(playerid,X,Y,Z,5);
    return 1;
}
works both on foot and in a vehicle
Alright thanks for help