25.08.2011, 00:16
pawn Код:
public OnPlayerUpdate(playerid)
{
//Speedometer is here
//Work for Drivers:
if(IsPlayerInVehicle(playerid, 516)) //If the player is in the Nebula (driver mission car)
{
if(gTeam[playerid] == TEAM_DRIVERS) //If the player is in the right team for the mission)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) //Check if the player is a driver
{
if(IsWorking[playerid] == 0) //Check if the player hasn't already started a Job
{
GameTextForPlayer(playerid, "~w~ U entered A ~y~Lvl 1~w~ vehicle. Please drive to the ~r~ Red marker~w~, located in front of the club. to Work", 3000, 4);
startworkpickup = CreatePickup(1317, 14, 10,0,2, -1);
}
}
else
{
GameTextForPlayer(playerid, "~w~ To work, enter the Vehicle as a Driver Please.", 3000, 4);
}
}
return 1;
}
//Other functions here.