Convoy - 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: Convoy (
/showthread.php?tid=88599)
Convoy -
soldierman - 27.07.2009
how would i start a convoy mission script wise ?
Re: Convoy -
GTA_Rules - 27.07.2009
wiki.sa-mp.com - search - Script Request Thread
Re: Convoy -
MadeMan - 27.07.2009
Depends what you want in there.
Re: Convoy -
soldierman - 27.07.2009
im going to do it in bits im startin with the start commands ive got :
Код:
if (strcmp("/startconvoy", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_YELLOW,"(-----------) wants to start a convoy type /joinconvoy if you want to join them ");
return 1;
}
how would i make it so that instead of the brackets i have the name of who ever typed /startconvoy
Re: Convoy -
MadeMan - 27.07.2009
pawn Код:
if (strcmp("/startconvoy", cmdtext, true, 10) == 0)
{
new playername[MAX_PLAYER_NAME], msg[128];
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(msg, sizeof(msg), "%s wants to start a convoy type /joinconvoy if you want to join them ", playername);
SendClientMessageToAll(COLOR_YELLOW,msg);
return 1;
}
Re: Convoy -
soldierman - 27.07.2009
thanks for help iim gonna try continue with it
Re: Convoy -
soldierman - 28.07.2009
i require some assistance again (sorry) my scripter friend says that "you need to check if there in a conovy and then set them to a variable" what does he mean ? im so confused my head hurts :P
Re: Convoy -
Narimalla - 20.01.2012
hey guys then wht about /joinconvoy tell me i need?
Re: Convoy -
milanosie - 20.01.2012
the variables:
on top of script:
Код:
new bool:isinconvoy[MAX_PLAYERS];
Under OnPlayerConnect
Код:
isincovoy[playerid] = 0;
under /joinconvoy
Код:
if(isinconvoy[playerid] == 0)
{
//YOUR SCRIPT
isinconvoy[playerid] = 1;
}
else return SendClientMessage(playerid, COLOR_GREY, "You are already in a convoy!");
Under the script that ends the convoy:
Код:
isinconvoy[playerid] = 0;
Re: Convoy -
Unte99 - 20.01.2012
Quote:
Originally Posted by Narimalla
hey guys then wht about /joinconvoy tell me i need?
|
Did you see the topic start date and the date of the last post ?