how removed
#1

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

what?
Reply
#3

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

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);
            }
Reply
#5

not work (((((((((((((
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)