Text msg Help for Convoy Missions - 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: Text msg Help for Convoy Missions (
/showthread.php?tid=412470)
Text msg Help for Convoy Missions -
ashben10 - 02.02.2013
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
Re: Text msg Help for Convoy Missions -
VET - 02.02.2013
All changes can be made from includes(pawno) in PPC _ trucking gamemode.
if u think i helped ples Rep +
Re: Text msg Help for Convoy Missions -
ashben10 - 04.02.2013
this is the pawno include file
can u tell me where i should add this ?