26.08.2009, 17:03
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);.
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);.