Convoy
#1

how would i start a convoy mission script wise ?
Reply
#2

wiki.sa-mp.com - search - Script Request Thread
Reply
#3

Depends what you want in there.
Reply
#4

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
Reply
#5

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;
    }
Reply
#6

thanks for help iim gonna try continue with it
Reply
#7

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
Reply
#8

hey guys then wht about /joinconvoy tell me i need?
Reply
#9

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;
Reply
#10

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 ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)