15.11.2010, 22:51
pawn Код:
public OnPlayerFinishMission(playerid)
{
SetPlayerScore(playerid, GetPlayerScore(playerid) + 3);
new pname[24],string[100];
GetPlayerName(playerid,pname,24);
if(IsSmallAirCraftMission[playerid]) format(string,sizeof(string), "%s completed %s in a dodo",pname,SmallAirCraftMissionRandom[MissionArrayID[playerid]][MissionName]);
else if(IsCargoAirCraftMission[playerid]) format(string,sizeof(string), "%s completed %s in a Nevada",pname,CargoAirCraftMissionRandom[MissionArrayID[playerid]][MissionName]);
else format(string,sizeof(string), "%s completed %s in a shamal",pname,PilotMissionRandom[MissionArrayID[playerid]][MissionName]);
SendClientMessageToAll(COLOR_YELLOW,string);
return 1;
}