Text msg Help for Convoy Missions
#1

Hai all


i have no clue how to make this in my PPC game mode

this is what i had in mind..

am having trucking server. in that if player finishes his work a text appears saying this player finishd this haul from xxx to xxx.

now i thought it will be nice. if the same thing goes for convoy

i.e if a /convoy is finished i thought a text msg like this should appear


xxxx player convoy has Hauled From xxxx to xxxx in xxx min/sec.



and one more thing

if someone want to create a /convoy a popup appears and in that who ever started a convoy thier names appear. and if he starts work again text appears to all the truckers

like this
xxxx Player Convoy is Starting with xxx trailer.in xxx location.


one of my frnd helped and gave a codes


something like this

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/convoy", cmdtext, true, 10) == 0)
    {
        //All your stuff here.
        //Now Add
        new pName[MAX_PLAYERS_NAME],msg[100];
        GetPlayerName(playerid,pName,20);
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid,X,Y,Z);
        format(msg,sizeof(msg),"%s player started Convoy in %d trailer in (%f,%f) location.",pName,trailer_number_here,X,Y);
        SendClientMessageToAll(YOUR_COLOR_HERE,msg);
        return 1;
    }
    return 0;
}
but i have no clue where to add this line in ppc trucking gm. if anyone know how to do it will you pls comment and help me out
Reply


Messages In This Thread
Text msg Help for Convoy Missions - by ashben10 - 02.02.2013, 05:04
Re: Text msg Help for Convoy Missions - by VET - 02.02.2013, 11:03
Re: Text msg Help for Convoy Missions - by ashben10 - 04.02.2013, 21:22

Forum Jump:


Users browsing this thread: 1 Guest(s)