[FilterScript] [FS]AirJob[ENG] /// Repьlős munka[HUN] /// By Danx
#7

Really nice FS, but I found one mistake and edited it.
When a player enters in the plane and starts the mission, but later quits and gets out of the plane, he can't play the mission again.

public OnPlayerExitVehicle(playerid, vehicleid)
{
if(CP[playerid] == 12345 || CP[playerid] == 123456)
{
SendClientMessage(playerid,COLOR_RED,"Tu izgaji no lidmasinas! Misija atcelta!");
DisablePlayerCheckpoint(playerid);
shamal[playerid] = 0;
CP[playerid] = 0;
}
return 1;
}

This is the code what I edited. I added shamal[playerid] = 0; and CP[playerid] = 0;. BTW, thanks for the great script!

EDIT: At public OnPlayerDeath(playerid, killerid, reason) add DisablePlayerCheckpoint(playerid);.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)