SA-MP Forums Archive
Extra missions in PPC Trucking? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Extra missions in PPC Trucking? (/showthread.php?tid=474339)



Extra missions in PPC Trucking? - Tuntun - 07.11.2013

I was trying to add more missions and more place to work in ppc trucking gamemode. also i have used ****** too many times. But can't find the result. Anyone can explain good that how to add more missions in ppc trucking with new crood,mission name payment and etc?.


Re: Extra missions in PPC Trucking? - Patrick - 07.11.2013

Make a new system, using variables, commands, definitions

Quick Example


pawn Код:
//global variable
new PlayerTeam[MAX_PLAYERS];

//global definition
#define TEAM_NAME

//Quick OnPlayerRequestClass Example
public OnPlayerRequestClass({playerid, classid)
{
    switch( classid )
    {
        case 1 .. 10: //skin id 1 to 10 will be set to the team you've added
        {
            PlayerTeam[MAX_PLAYERS] = TEAM_NAME;
        }
    }
    return true;
}

//Quick Command Example
CMD:harvest(playerid, params[])
{
    if(PlayerTeam[playerid] != TEAM_NAME)
        return SendClientMessage(playerid, -1, "You're not in the" TEA_NAME);

    // rest of the function.
    return true;
}



Re: Extra missions in PPC Trucking? - Tuntun - 07.11.2013

Why i have to make new missions system? i can edit it? if someone knows it than he should help me.


Respuesta: Extra missions in PPC Trucking? - hensr - 11.11.2013

hi you try in includes PPC_DefLoads and PPC_DefLocations