SA-MP Forums Archive
how removed - 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)
+--- Thread: how removed (/showthread.php?tid=484784)



how removed - br155 - 01.01.2014

When a player left game, the car was purchased to be removed


Код HTML:

	if(getCheckpointType(playerid) == CP_OttoCP)
	{
	    if(IsPlayerInAnyVehicle(playerid))
	    {
	        SendClientMessage(playerid,COLOR_ERROR,"You must exit your vehicle before entering a checkpoint.");
	        return 1;
		}
		ShowPlayerDialog(playerid,DIALOG_OTTO,DIALOG_STYLE_LIST,"{FF0000}nemayandegi (IRAN KHODRO)","{FFFFFF}Infernus(2dar) ($120000)\nTurismo(2dar) ($120000)\nMashin Mosabeghe(2dar) ($200000)\nSuper GT(2dar) ($150000)\nSultan (4dar) ($50000)\nLimozin (4dar) ($80000)\nElegy(2dar) ($60000)\nElegant(4dar) ($40000)\nBullet(2dar) ($100000)\nBuffalo(2dar) ($50000)\nJester(2dar) ($90000)\nHachbak(2dar) ($40000)\nNRG 500 ($200000)\nTDR(Sanchez) ($200000)\n{FF0000}Dozdi","Ok","Cancel");
		return 1;
	}



Re: how removed - Jessyy - 01.01.2014

what?


Respuesta: how removed - br155 - 01.01.2014

how for player exit game, the car was purchased to be removed


Re: how removed - Stereotype - 01.01.2014

You can use something like this on OnPlayerExitVehicle, but be sure to define vehicles
pawn Код:
if (IsThatVehicle(vehicleid) && !ispassenger)  
            {
                new currentveh;
                currentveh = GetPlayerVehicleID(playerid);
                DestroyVehicle(currentveh);
            }



Respuesta: how removed - br155 - 01.01.2014

not work (((((((((((((


Re: how removed - Stereotype - 02.01.2014

Well, not work when you not made it.. I will do it for you, just give me id's of that cars