[HELP]Help with checkpoint - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Help with checkpoint (
/showthread.php?tid=234824)
[HELP]Help with checkpoint -
Gagi_Corleone - 04.03.2011
I work one job and want to put when a player (not the in car) fit on a CP then move to the next. I know all of cp just what to put here.
if(PlayerToPoint(5.0, playerid,804.4548,-1357.3115,-0.1696))//cp1
{
if(PlayerInfo[playerid][pMasinovodja] == 1)//
SetTimerEx("postartimer", 5000, false, "i", playerid);
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate sacekati 5 sekundi da se svi putnici ukrcaju.");
{
new string[50];
new Veh = GetPlayerVehicleID(playerid);
if(Veh == what i need to put here)//
{
PlayerInfo[playerid][pMasinovodja] = 2;
SetPlayerCheckpoint(playerid,-199.7778,-1045.4110,14.6472,5.0);//
RandomNovac = random(MAX_NOVAC);
GivePlayerMoney(playerid,RandomNovac);
format(string, sizeof(string), "Na vas racun je uplaceno $%d.",RandomNovac);
GameTextForPlayer(playerid,string, 2000, 4)
}
}
}
Sorry for my bad english
Re: [HELP]Help with checkpoint -
Gagi_Corleone - 05.03.2011
Does anyone knows?