[HELP]Help with checkpoint
#1

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

Does anyone knows?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)