27.07.2009, 19:37
how would i start a convoy mission script wise ?
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;
}
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;
}
new bool:isinconvoy[MAX_PLAYERS];
isincovoy[playerid] = 0;
if(isinconvoy[playerid] == 0)
{
//YOUR SCRIPT
isinconvoy[playerid] = 1;
isinconvoy[playerid] = 0;