SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 11/06/2013, 03:22 PM   #1
Pajser
Big Clucker
 
Join Date: Sep 2011
Posts: 125
Reputation: 0
Default [Help] driving license

The script: I'm using Ravens RolePlay GM
Description about the problem: If I have no driving license and I want to get it so, I will go to licenses center and there type /buydriving,then I will get driving test with text and if I passed it,then I will get driving test. The problem is there on the last checkpoint,when the player enter in the checkpoint it doesn't work,well checkpoint will not be disabled and anything of text wouldn't be showed like "You finished your driving test etc..". On my home server when I'm id 0 always it always works for me,but for other id's on linux it doesn't work
Part of the script: I will give this,if you need something else,just say

Code:
}
	if(IgracPolaze[playerid] == 1)
	{
	    new carid = GetPlayerVehicleID(playerid);
	    if(IsAPolaganjeVozilo(carid))
	    {
			if(CP[playerid] == 1000) {printf("Odradjen CP %d",CP[playerid]);DisablePlayerCheckpoint(playerid);SetPlayerCheckpoint(playerid,555.8055,-1582.7268,15.9400,4.0); CP[playerid] = 1001; return 1;}
			else if(CP[playerid] == 1001) {printf("Odradjen CP %d",CP[playerid]);DisablePlayerCheckpoint(playerid);SetPlayerCheckpoint(playerid,452.1725,-1575.4485,25.2337,4.0); CP[playerid] = 1002; return 1;}
			else if(CP[playerid] == 1002) {printf("Odradjen CP %d",CP[playerid]);DisablePlayerCheckpoint(playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,404.4110,-1480.0077,31.0073,4.0); CP[playerid] = 1003; return 1;}
			else if(CP[playerid] == 1003) {printf("Odradjen CP %d",CP[playerid]);DisablePlayerCheckpoint(playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,325.7561,-1571.5514,33.0360,4.0); CP[playerid] = 1004; return 1;}
			else if(CP[playerid] == 1004) {printf("Odradjen CP %d",CP[playerid]);DisablePlayerCheckpoint(playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,258.7735,-1572.4921,32.9258,4.0); CP[playerid] = 1005; return 1;}
			else if(CP[playerid] == 1005) {printf("Odradjen CP %d",CP[playerid]);DisablePlayerCheckpoint(playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,286.2873,-1502.7004,32.5583,4.0); CP[playerid] = 1006; return 1;}
			else if(CP[playerid] == 1006) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,192.0265,-1519.6936,12.5399,4.0); CP[playerid] = 1007; return 1;}
			else if(CP[playerid] == 1007) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,251.8208,-1438.5563,13.3708,4.0); CP[playerid] = 1008; return 1;}
			else if(CP[playerid] == 1008) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,474.7064,-1308.0428,15.2654,4.0); CP[playerid] = 1009; return 1;}
			else if(CP[playerid] == 1009) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,656.9050,-1202.3230,18.0067,4.0); CP[playerid] = 1010; return 1;}
			else if(CP[playerid] == 1010) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,753.5446,-1066.8289,23.6670,4.0); CP[playerid] = 1011; return 1;}
			else if(CP[playerid] == 1011) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,953.1033,-975.3172,38.6708,4.0); CP[playerid] = 1012; return 1;}
			else if(CP[playerid] == 1012) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,961.1972,-1039.6890,30.0189,4.0); CP[playerid] = 1013; return 1;}
			else if(CP[playerid] == 1013) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,940.5981,-1184.5752,19.5120,4.0); CP[playerid] = 1014; return 1;}
			else if(CP[playerid] == 1014) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,914.9889,-1365.1594,13.1355,4.0); CP[playerid] = 1015; return 1;}
			else if(CP[playerid] == 1015) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,916.3383,-1737.6366,13.3141,4.0); CP[playerid] = 1016; return 1;}
			else if(CP[playerid] == 1016) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,643.8130,-1731.2504,13.5770,4.0); CP[playerid] = 1017; return 1;}
			else if(CP[playerid] == 1017) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,639.2842,-1560.0924,15.2835,4.0); CP[playerid] = 1018; return 1;}
			else if(CP[playerid] == 1018) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,686.1772,-1548.1727,14.7817,4.0); CP[playerid] = 1019; return 1;}
			else if(IsPlayerInRangeOfPoint(playerid, 5.0, 686.1772,-1548.1727,14.7817))
			{
       			IgracPolaze[playerid] = 0;
		    	VoziloPolaze[playerid] = 0;
		    	new Float:Health; GetVehicleHealth(polaganjevozilo[playerid],Health);
		    	SetVehicleToRespawn(GetPlayerVehicleID(playerid));
	    		LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
				SafeRemovePlayerFromVehicle(playerid);
		    	if(Health < 850)
		    	{
		    	    DisablePlayerCheckpoint(playerid);
		    	    CP[playerid] = 0;
					SCM(playerid,COLOR_WHITE,"Pali ste na polaganju jer ste ostetili automobil");
					return 1;
				}
				else
				{
				    DisablePlayerCheckpoint(playerid);
		    	    CP[playerid] = 0;
		    		PlayerInfo[playerid][pCarLic] = 1;
		    		SCM(playerid,COLOR_WHITE,"Zavrsili ste polaganje,dobili ste vozacku dozvolu!!");
		    		return 1;
		    	}
			}
		}
Pajser is offline   Reply With Quote
Old 11/06/2013, 07:14 PM   #2
Pajser
Big Clucker
 
Join Date: Sep 2011
Posts: 125
Reputation: 0
Default Re: [Help] driving license

Help me ?
Pajser is offline   Reply With Quote
Old 11/06/2013, 07:17 PM   #3
Scenario
Godfather
 
Scenario's Avatar
 
Join Date: Feb 2010
Location: Heaven
Posts: 7,801
Reputation: 701
Default Re: [Help] driving license

I can help you not receive an infraction. Go read the forum rules.
Scenario is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS]Driving License nate660 Filterscripts 54 21/09/2013 09:34 AM
[FilterScript] Sgt's Driving License Sascha Filterscripts 19 02/08/2013 10:58 AM
[FilterScript] [REQUEST] Driving License System. iiLiamii Filterscripts 2 15/01/2011 09:19 PM
Driving License BaFTa Help Archive 4 04/01/2011 07:45 PM
Driving License SmartCop Help Archive 4 20/09/2010 04:00 PM


All times are GMT. The time now is 05:34 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.