[HELP] Deleting CheckPoint When........
#1

I got this codes:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp("/start", cmdtext, true, 6) == 0)
	{
		if(IsPlayerInAnyVehicle(playerid))
		{
			new vehid = GetPlayerVehicleID(playerid);
			if(GetVehicleModel(vehid) == 574)
			{
				SetPlayerCheckpoint(playerid, -147.1910, 1146.1820, 19.5938, 3.0);
				SendClientMessage(playerid, 0xFF66FFAA, "Sweeper Job Accepted.");
			}
			else SendClientMessage(playerid, 0xFF66FFAA, "You need to be in a Sweeper, to use this command!");
		}
		else SendClientMessage(playerid, 0xFF66FFAA, "You need to be in a sweeper, to use this command!");
		return 1;
	}
	return 0;
}
Код:
public OnPlayerEnterCheckpoint(playerid)
{
	GivePlayerMoney(playerid, 1500);
    DisablePlayerCheckpoint(playerid);
	return 1;
}
How can i do for this : When the player pass on the checkpoint it delete the checkpoint and set a new one to an other place.

Sorry for my English.
Reply
#2

In OnPlayerEnterCheckpoint, destory the checkpoint and make a new one.
Reply
#3

How do i do that? o.O
Reply
#4

Bump. I really need help!
Reply
#5

....
Reply
#6

Quote:
Originally Posted by [TPG
Coole210 ]
add
pawn Код:
new checkp; // TOP OF SCRIPT
pawn Код:
checkp = SetPlayerCheckpoint(playerid, -147.1910, 1146.1820, 19.5938, 3.0); // REPLACE WITH OLD 1
pawn Код:
if(IsPlayerInCheckPoint(playerid) == checkp) // You do the rest...
You can't do that because IsPlayerInCheckPoint only returns true or false and you can't define SetPlayerCheckpoint with a variable

Use a streamer or view my tutorial
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)