02.02.2012, 18:45
For something calls "Base Gamemode"
if(!strcmp("/work", cmdtext, true))
{
new pvehiclemodel = GetVehicleModel(GetPlayerVehicleID(playerid));
if (pvehiclemodel == 437 || pvehiclemodel == 431)
{
TextDrawHideForPlayer(playerid, NotWorking);
if (IsPlayerInMission[playerid] == 1) return SendClientMessage(playerid, 0xFF0000AA, ">> You are currently in a mission use \"/cancelmission\" to cancel your current mission!"); // prevents them de starting another mission
new rand = random(sizeof(TruckingMissionRandom));
IsPlayerInMission[playerid] = 1; // asign it to 1 becuase there in a mission
CreatePlayerMission(playerid, TruckingMissionRandom[rand][UseTrailerCheck], TruckingMissionRandom[rand][MissionPay], TruckingMissionRandom[rand][loadx],TruckingMissionRandom[rand][loady], TruckingMissionRandom[rand][loadz], TruckingMissionRandom[rand][unloadx],TruckingMissionRandom[rand][unloady], TruckingMissionRandom[rand][unloadz]);
SendClientMessage(playerid, 0x00FF00FF, "You start a mission! Take a look in the info. box bellow !.");
new Cock[128];
format(Cock, sizeof(Cock), "%s", TruckingMissionRandom[rand][MissionName]);
TextDrawSetString(Working, Cock);
TextDrawShowForPlayer(playerid, Working);
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "Im sorry but this mission requires that you use a vehicle that can pull a semi trailer Ex: Roadtrain with an Artict1!");
}
return 1;
}