Jump to content
  • 0

Problema checkpoint.


Scott_Williams

Question

De ce se vad asa mari chepointurile?

samp153d.png

Uploaded with ImageShack.us

Asta e comanda

else if(CP[playerid]==80)
	{
	    DisablePlayerCheckpoint(playerid);
	}
	else if(CP[playerid]==200)//Exam_01
	{
		if(IsPlayerInVehicle(playerid, 277))
		{
	    	DisablePlayerCheckpoint(playerid);
			CP[playerid] = 201;
			SetPlayerCheckpoint(playerid, 346.6454,-1502.1606,35.6647,133, 5.0);
		}
		else
		{
		    SendClientMessage(playerid, COLOR_LIGHTBLUE,"EXAM: You are not in the vehicle!");
		    SendClientMessage(playerid, COLOR_LIGHTBLUE,"EXAM: Drive License not passed. Try again.");
		    DisablePlayerCheckpoint(playerid);
    		RemovePlayerFromVehicle(playerid);
  			SetVehicleToRespawn(277);
  			SetVehicleNumberPlate(examc, " School");
  			TakingLesson[playerid] = 0;
		}
	}
	else if(CP[playerid]==201)//Exam_02
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 202;
		SetPlayerCheckpoint(playerid, 380.5572,-1504.1154,32.1549,305, 5.0);
	}
	else if(CP[playerid]==202)//Exam_03
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 203;
		SetPlayerCheckpoint(playerid, 501.1481,-1427.7216,15.4551,288, 5.0);
	}
	else if(CP[playerid]==203)//Exam_04
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 204;
		SetPlayerCheckpoint(playerid, 610.9811,-1404.3313,13.2024,273, 5.0);
	}
	else if(CP[playerid]==204)//Exam_05
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 205;
		SetPlayerCheckpoint(playerid, 704.4262,-1402.7170,13.1852,270, 5.0);
	}
   	else if(CP[playerid]==205)//Exam_06
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 206;
		SetPlayerCheckpoint(playerid, 778.3120,-1403.6584,13.1755,269, 5.0);
	}
	else if(CP[playerid]==206)//Exam_07
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 207;
		SetPlayerCheckpoint(playerid, 793.7089,-1419.9962,13.1874,187, 5.0);
	}
	else if(CP[playerid]==207)//Exam_08
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 208;
		SetPlayerCheckpoint(playerid, 791.6496,-1476.3514,13.1905,173, 5.0);
	}
	else if(CP[playerid]==208)//Exam_09
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 209;
		SetPlayerCheckpoint(playerid, 773.6599,-1550.7570,13.1835,173, 5.0);
	}
	else if(CP[playerid]==209)//Exam_10
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 210;
		SetPlayerCheckpoint(playerid, 728.9726,-1583.3308,14.0525,90, 5.0);
	}
	else if(CP[playerid]==210)//Exam_11
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 211;
		SetPlayerCheckpoint(playerid, 655.7477,-1584.0676,14.7207,91, 5.0);
	}
	else if(CP[playerid]==211)//Exam_12
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 212;
		SetPlayerCheckpoint(playerid, 550.6871,-1583.6526,15.8117,85, 5.0);
	}
	else if(CP[playerid]==212)//Exam_13
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 213;
		SetPlayerCheckpoint(playerid, 529.8369,-1619.3193,16.2570,183, 5.0);
	}
	else if(CP[playerid]==213)//Exam_14
	{
		DisablePlayerCheckpoint(playerid);
		CP[playerid] = 214;
		SetPlayerCheckpoint(playerid, 489.2701,-1660.5371,21.2286,68, 5.0);
	}
	else if(CP[playerid]==214)//Exam_15
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 215;
		SetPlayerCheckpoint(playerid, 435.2783,-1654.6908,25.1398,85, 5.0);
	}
	else if(CP[playerid]==215)//Exam_16
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 216;
		SetPlayerCheckpoint(playerid, 392.7118,-1648.3208,31.1105,83, 5.0);
	}
	else if(CP[playerid]==216)//Exam_17
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 217;
		SetPlayerCheckpoint(playerid, 364.7062,-1644.9081,32.5319,83, 5.0);
	}
	else if(CP[playerid]==217)//Exam_18
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 218;
		SetPlayerCheckpoint(playerid, 339.8446,-1557.2347,32.8267,10, 5.0);
	}
	else if(CP[playerid]==218)//Exam_19
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 219;
		SetPlayerCheckpoint(playerid, 330.9679,-1518.6119,35.6715,133, 5.0);
	}
	else if(CP[playerid]==219)//Exam_20
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 220;
		SetPlayerCheckpoint(playerid, 280.8058,-1547.8713,25.3887,325, 5.0);
	}
	else if(CP[playerid]==220)//Exam_21
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 221;
		SetPlayerCheckpoint(playerid, 296.7766,-1535.6849,24.3978,55, 5.0);
	}
	else if(CP[playerid]==221)//Exam_Final
	{
		new pName[24];
		new str[128];
		GetPlayerName(playerid, pName, 24);
		GivePlayerMoney(playerid, -5000);
 		format(str, 128,"EXAM: Congratulation %s! Drive License Passed.", pName);
 		SendClientMessage(playerid, COLOR_LIGHTBLUE, str);
 		RemovePlayerFromVehicle(playerid);
  		SetVehicleToRespawn(277);
  		SetVehicleNumberPlate(examc, " School");
  		TakingLesson[playerid] = 0;
		PlayerInfo[playerid][pCarLic] = 1;
		DisablePlayerCheckpoint(playerid);
	}
	

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Ce-ai pus atatia parametrii la SetPlayerCheckPoint ? Trebuia sa-ti dea eroare, corect e asa:

else if(CP[playerid]==80)
	{
	    DisablePlayerCheckpoint(playerid);
	}
	else if(CP[playerid]==200)//Exam_01
	{
		if(IsPlayerInVehicle(playerid, 277))
		{
	    	DisablePlayerCheckpoint(playerid);
			CP[playerid] = 201;
			SetPlayerCheckpoint(playerid, 346.6454,-1502.1606,35.6647,5.0);
		}
		else
		{
		    SendClientMessage(playerid, COLOR_LIGHTBLUE,"EXAM: You are not in the vehicle!");
		    SendClientMessage(playerid, COLOR_LIGHTBLUE,"EXAM: Drive License not passed. Try again.");
		    DisablePlayerCheckpoint(playerid);
    		RemovePlayerFromVehicle(playerid);
  			SetVehicleToRespawn(277);
  			SetVehicleNumberPlate(examc, " School");
  			TakingLesson[playerid] = 0;
		}
	}
	else if(CP[playerid]==201)//Exam_02
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 202;
		SetPlayerCheckpoint(playerid, 380.5572,-1504.1154,32.1549, 5.0);
	}
	else if(CP[playerid]==202)//Exam_03
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 203;
		SetPlayerCheckpoint(playerid, 501.1481,-1427.7216,15.4551,5.0);
	}
	else if(CP[playerid]==203)//Exam_04
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 204;
		SetPlayerCheckpoint(playerid, 610.9811,-1404.3313,13.2024, 5.0);
	}
	else if(CP[playerid]==204)//Exam_05
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 205;
		SetPlayerCheckpoint(playerid, 704.4262,-1402.7170,13.1852,5.0);
	}
   	else if(CP[playerid]==205)//Exam_06
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 206;
		SetPlayerCheckpoint(playerid, 778.3120,-1403.6584,13.1755,5.0);
	}
	else if(CP[playerid]==206)//Exam_07
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 207;
		SetPlayerCheckpoint(playerid, 793.7089,-1419.9962,13.1874,5.0);
	}
	else if(CP[playerid]==207)//Exam_08
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 208;
		SetPlayerCheckpoint(playerid, 791.6496,-1476.3514,13.1905,5.0);
	}
	else if(CP[playerid]==208)//Exam_09
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 209;
		SetPlayerCheckpoint(playerid, 773.6599,-1550.7570,13.1835,5.0);
	}
	else if(CP[playerid]==209)//Exam_10
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 210;
		SetPlayerCheckpoint(playerid, 728.9726,-1583.3308,14.0525, 5.0);
	}
	else if(CP[playerid]==210)//Exam_11
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 211;
		SetPlayerCheckpoint(playerid, 655.7477,-1584.0676,14.7207,5.0);
	}
	else if(CP[playerid]==211)//Exam_12
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 212;
		SetPlayerCheckpoint(playerid, 550.6871,-1583.6526,15.8117,5.0);
	}
	else if(CP[playerid]==212)//Exam_13
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 213;
		SetPlayerCheckpoint(playerid, 529.8369,-1619.3193,16.2570,5.0);
	}
	else if(CP[playerid]==213)//Exam_14
	{
		DisablePlayerCheckpoint(playerid);
		CP[playerid] = 214;
		SetPlayerCheckpoint(playerid, 489.2701,-1660.5371,21.2286,5.0);
	}
	else if(CP[playerid]==214)//Exam_15
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 215;
		SetPlayerCheckpoint(playerid, 435.2783,-1654.6908,25.1398,5.0);
	}
	else if(CP[playerid]==215)//Exam_16
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 216;
		SetPlayerCheckpoint(playerid, 392.7118,-1648.3208,31.1105, 5.0);
	}
	else if(CP[playerid]==216)//Exam_17
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 217;
		SetPlayerCheckpoint(playerid, 364.7062,-1644.9081,32.5319,5.0);
	}
	else if(CP[playerid]==217)//Exam_18
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 218;
		SetPlayerCheckpoint(playerid, 339.8446,-1557.2347,32.8267,5.0);
	}
	else if(CP[playerid]==218)//Exam_19
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 219;
		SetPlayerCheckpoint(playerid, 330.9679,-1518.6119,35.6715, 5.0);
	}
	else if(CP[playerid]==219)//Exam_20
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 220;
		SetPlayerCheckpoint(playerid, 280.8058,-1547.8713,25.3887, 5.0);
	}
	else if(CP[playerid]==220)//Exam_21
	{
	    DisablePlayerCheckpoint(playerid);
		CP[playerid] = 221;
		SetPlayerCheckpoint(playerid, 296.7766,-1535.6849,24.3978, 5.0);
	}
	else if(CP[playerid]==221)//Exam_Final
	{
		new pName[24];
		new str[128];
		GetPlayerName(playerid, pName, 24);
		GivePlayerMoney(playerid, -5000);
 		format(str, 128,"EXAM: Congratulation %s! Drive License Passed.", pName);
 		SendClientMessage(playerid, COLOR_LIGHTBLUE, str);
 		RemovePlayerFromVehicle(playerid);
  		SetVehicleToRespawn(277);
  		SetVehicleNumberPlate(examc, " School");
  		TakingLesson[playerid] = 0;
		PlayerInfo[playerid][pCarLic] = 1;
		DisablePlayerCheckpoint(playerid);
	}
	

Marimea venea ca e 300 si, 200 si, 100 si, 50 si ... si trebuia sa nu pui alea, doar 5.0 :P

Check this:

*http://wiki.sa-mp.com/wiki/SetPlayerCheckpoint
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.