Jump to content
  • 0

problema cu masinile !


Question

Posted

Am si eu o problema cu masinile imi dubleaza masinile exemplu aici : samp000al.png

nu stiu ce sa fac la OnGameModeInit am asa

new ptmcar[10];
//----------------OnGameModeInit
ptmcar[1] = CreateVehicle(579,1274.1068000,-2042.2578000,58.8995000,359.3878000,-1,-1,900); //Huntley
	ptmcar[2] = CreateVehicle(579,1278.4576000,-2042.2683000,58.8995000,0.0000000,-1,-1,900); //Huntley
	ptmcar[3] = CreateVehicle(560,1245.3206000,-2026.3519000,59.5444000,270.6799000,-1,-1,900); //Sultan
	ptmcar[4] = CreateVehicle(560,1245.4575000,-2030.3757000,59.5444000,270.6799000,-1,-1,900); //Sultan
	ptmcar[5] = CreateVehicle(409,1245.9938000,-2015.6508000,59.5769000,230.3842000,-1,-1,900); //Stretch
	ptmcar[6] = CreateVehicle(409,1246.6364000,-2010.7092000,59.5769000,230.3842000,-1,-1,900); //Stretch
	ptmcar[7] = CreateVehicle(487,1276.1467000,-2011.3606000,59.0758000,2.2249000,-1,-1,900); //Maverick
	ptmcar[8] = CreateVehicle(521,1244.3899000,-2041.7598000,59.3292000,268.0617000,-1,-1,900); //FCR-900
	ptmcar[9] = CreateVehicle(521,1244.4412000,-2039.3096000,59.3292000,268.0617000,-1,-1,900); //FCR-900
iar la OnPlayerStateChange am asa :
public OnPlayerStateChange(playerid,newstate,oldstate)
{
	new nc = GetPlayerVehicleID(playerid);
	if( newstate == 2 )
	{
		if( nc == ptmcar[1] || nc == ptmcar[2] || nc == ptmcar[3] || nc == ptmcar[4] || nc == ptmcar[5] ||nc == ptmcar[6] || nc == ptmcar[7] || nc == ptmcar[8] || nc == ptmcar[9] )
		{
	        if(pfct[playerid][fid] != 13)
	        {
            	SendClientMessage(playerid,-1,"You not member of P.T.M Street");
		        RemovePlayerFromVehicle(playerid);
		    }
		}
		return 1;
	}
	return 1;
}

Am nevoie urgent de ajutor !( for Darky nu sunteti sclavi dar am nevoie de ajutor ma tot chinui de 4 zile cu el :))

I'm back bitches.

1 answer to this question

Recommended Posts

Posted

Nu cred ca le dubleaza.Din cate vad eu, tot codul este in regula, s-ar putea sa fie de la coordonate.Verifica in modul de joc, vehiculele cu coordonate asemanatoare ale masinilor care se "dubleaza".

Guest
This topic is now closed to further replies.
×
×
  • 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.