You are viewing our Forum Archives. To view or take place in current topics click here.
I need help on a mod...
Posted:
I need help on a mod...Posted:
Status: Offline
Joined: Jun 17, 201212Year Member
Posts: 30
Reputation Power: 1
Hi, i want to make or change a bodyguard mod.
I want the guards to be the runner ped with his hood on, two of them with mac 10's and one with a glock.
Or if it's possible could some one tell/show me how to make a sco script? i would like a list of people who will protect you and you could choose what weapon they spawn with, it would be pretty nice.
-Thanks.
I want the guards to be the runner ped with his hood on, two of them with mac 10's and one with a glock.
Or if it's possible could some one tell/show me how to make a sco script? i would like a list of people who will protect you and you could choose what weapon they spawn with, it would be pretty nice.
-Thanks.
#2. Posted:
Status: Offline
Joined: Mar 11, 201212Year Member
Posts: 2,386
Reputation Power: 84
Status: Offline
Joined: Mar 11, 201212Year Member
Posts: 2,386
Reputation Power: 84
yeah its pretty easy once you open your .sco files. you just gotta know how to script mod. go on youtube thats how i learned
- 0useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Jun 17, 201212Year Member
Posts: 30
Reputation Power: 1
2Pac-Shakur wrote yeah its pretty easy once you open your .sco files. you just gotta know how to script mod. go on youtube thats how i learned
I got the script i just need someone to add controls on it like LB + RB to spawn 1 guard also need someone to turn it into a sco file.
Ped gameped;
float BGx,BGy,BGz;
Group Bgroup;
bool bg=0;
int guard=0;
void BodyGuards(void)
{
void Print(char *string)
{
PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING", string, 5000, 1);
}
// Set this that the Gang will Follow you
void Colt(void)
{
if(bg==0)
{
GET_PLAYER_GROUP(GetPlayerIndex(), &Bgroup);
if(!DOES_GROUP_EXIST(Bgroup))
{
CREATE_GROUP(0, Bgroup, TRUE);
SET_GROUP_LEADER(Bgroup, GetPlayerPed());
SET_GROUP_SEPARATION_RANGE(Bgroup, 9999.9);
SET_GROUP_FORMATION(Bgroup, 2);
bg=1;
}
}
}
// Alows you to choose options when spawning your ped
void Setup(uint model, char *name, uint weapon ,float offset_y, uint Rcol, uint Gcol , uint Bcol)
{
REQUEST_MODEL(model);
while (!HAS_MODEL_LOADED(model)) WAIT(0);
Ped Pped = GetPlayerPed();
GET_OFFSET_FROM_CHAR_IN_WORLD_COORDS(Pped, 0, offset_y , 0, &BGx, &BGy, &BGz);
CREATE_CHAR(26, model, BGx,BGy,BGz, &gameped, true);
SET_GROUP_MEMBER(Bgroup, gameped); // Ped as Bodyguard
SET_CHAR_NEVER_LEAVES_GROUP(gameped, TRUE); // Keeps the Group together
SET_CHAR_ACCURACY(gameped, 100); // Ped Options
SET_CHAR_SHOOT_RATE(gameped, 100);
SET_CHAR_WILL_DO_DRIVEBYS(gameped, true);
SET_CHAR_SIGNAL_AFTER_KILL(gameped, true);
SET_CHAR_WILL_USE_CARS_IN_COMBAT(gameped, true);
SET_CHAR_WILL_FLY_THROUGH_WINDSCREEN(gameped, true);
SET_CHAR_INVINCIBLE(gameped, false);
SET_CHAR_PROVIDE_COVERING_FIRE(gameped, true);
SET_CHAR_CANT_BE_DRAGGED_OUT(gameped, true);
SET_CHAR_STAY_IN_CAR_WHEN_JACKED(gameped, true);
SET_PED_DONT_DO_EVASIVE_DIVES(gameped, false);
SET_PED_PATH_MAY_DROP_FROM_HEIGHT(gameped, true);
SET_PED_PATH_MAY_USE_CLIMBOVERS(gameped, true);
SET_PED_PATH_MAY_USE_LADDERS(gameped, true);
UpdateWeaponOfPed(gameped, weapon); //uint weapon for ped
SET_CURRENT_CHAR_WEAPON(gameped, weapon, true); // uint weapon for ped
}
// Allows you to choose options when spawning your ped and will only spawn 5
void Group(void)
{
if(IS_GAME_KEYBOARD_KEY_JUST_PRESSED(24, O)) // O = what button to spawn on the keyboard
{
GET_GROUP_SIZE(Group group, uint *pStartIndex, uint *pCount);
uint amount,pCount;
GET_GROUP_SIZE(Bgroup, &amount, &pCount);
if (pCount < 10)// Checks the size and if under 5 will spawn 1 dude
{
if(guard==0)
{
homies(MODEL_IG_*******_X ,"******* X",WEAPON_MICRO_UZI, 2, 226, 65, 215);
guard=1;
}
else if(guard==1)
{
homies(MODEL_M_Y_RUNNER,"Runner",WEAPON_MICRO_UZI,4, 226, 65, 215);
guard=2;
}
else if(guard==2)
{
homies(MODEL_M_Y_RUNNER,"Runner",WEAPON_glock, 5, 255, 0, 0);
guard=3;
}
else if(guard==3)
{
homies(MODEL_M_Y_GAFR_LO_1,"Gangster",WEAPON_M4,6, 255, 0, 0);
guard=4;
}
else if(guard==4)
{
homies(MODEL_M_Y_GJAM_LO_1,"Jam",WEAPON_MICRO_UZI , 8, 255, 0, 0);
guard=5;
}
else if(guard==5)
{
homies(MODEL_IG_PHILL_BELL,"Phill",WEAPON_BERETTA, 14, 255, 0, 0);
guard=6;
}
else if(guard==6)
{
homies(MODEL_IG_ROMAN,"Roman",WEAPON_MP5, 15, 255, 0, 0);
guard=7;
}
else if(guard==7)
{
homies(MODEL_IG_BRUCIE,"Brucie",WEAPON_DEAGLE,16, 255, 0, 0);
guard=8;
}
else if(guard==8)
{
homies(MODEL_IG_FRANCIS_MC,"Francis",WEAPON_MICRO_UZI, 18, 255, 0, 0);
guard=0;
}
else if(guard==9)
{
homies(MODEL_CS_ELIZABETA,"Elizabeta",WEAPON_MP5, 19, 255, 0, 0);
guard=0;
}
Print("Your Story Friends Have Come To Help.");
}}
}
THIS_SCRIPT_IS_SAFE_FOR_NETWORK_GAME();
while(1)
{
Group();
Colt();
WAIT(0);
}
}
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.