Help me change running style to cj running style!
#1

Im gonna smash my computer, on my script the players run like they have 6 dildos up their ass! Please help I have no clue were to put UsePlayerPedAnims(); after public OnGameModeInit(). Where would i put it to get cj's running style when my script looks like this.
Code:
public OnGameModeInit() // Do not add vehicles Above the next lines. - CuervO
{
	ShowPlayerMarkers(2);
	LoadCar();
	new string2[64];
	for(new h = 1; h < sizeof(CarInfo); h++)
	{
		format(string2, sizeof(string2), "LARP/Vehicles/%d.ini",h);
		if(dini_Exists(string2))
		{
			ownedcar[h] = AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
			if(CarInfo[h][cPaintjob] != 999)
			{
				ChangeVehiclePaintjob(h, CarInfo[h][cPaintjob]);
			}
			SetVehicleVirtualWorld(h, CarInfo[h][cVirWorld]);
			SetVehicleModifications(h);
		}
	}
  	
  	if(!dini_Exists("LARP/Users/Aliases/alias.txt")) dini_Create("LARP/Users/Aliases/alias.txt");
    if(!dini_Exists("LARP/Users/Aliases/ips.txt")) dini_Create("LARP/Users/Aliases/ips.txt");

	SendIP = 0;
	cDebug = 0;
	nextapartment = 24;
	nexthouse = 2;
	nextmedium = 17;
	nextbig = 1;
	
	nextshop = 1;
	
	Predators = 0;
	Rhinos = 0;
	Hunters = 0;
	Hydras = 0;
	admins = 0;
	MinutesTD = 0;
	SecondsTD = 0;
	HoursTD = 0;
	voteyes = 0;
	voteno = 0;
	votation = 0;
	votetype = 0;
	votationrecently = 0;
	beingvoted = 255;
	ServerRestarted = 0;
    new string[MAX_PLAYER_NAME];
    new string1[MAX_PLAYER_NAME];
    new PropertyString[256];
    for(new i = 1; i < MAX_REPORTS; i++) Reports[i] = "<none>";
	for(new c=0;c<MAX_VEHICLES;c++)
	{
		Gas[c] = GasMax;
	}
	
	SetTimer("PeterAC", 1000, true);
	SetTimer("SendMSG", 450000, true);
	SetTimer("ChangeWeather",1200000, true);
	SetTimer("PaySprayTrans",1000,true);
	SetTimer("GpsCheck",1250,true);
	
	new hour,minute,second;
	gettime(hour,minute,second);
	HoursTD = hour;
	MinutesTD = minute;
	SecondsTD = second;
	
	SetTimer("ClockSeconds",1000,true);
	
	LoadMotd();
	LoadEvents();
	ChangeWeather();
Reply
#2

pawn Code:
public OnGameModeInit()
{
    UsePlayerPedAnims();
    //blabla
    return 1;
}
Reply
#3

pawn Code:
OnGameModeInit()
{
 UsePlayerPedAnims();
}
Reply
#4

Can you insert that into the code i posted to show me how i would fit it in there. My pawn compiler keep crashing because i don't know where to put it.
Reply
#5

Put it before ShowPlayerMarkers(2);
Reply
#6

pawn Code:
public OnGameModeInit() // Do not add vehicles Above the next lines. - CuervO
{
    ShowPlayerMarkers(2);
    LoadCar();
    new string2[64];
    for(new h = 1; h < sizeof(CarInfo); h++)
    {
        format(string2, sizeof(string2), "LARP/Vehicles/%d.ini",h);
        if(dini_Exists(string2))
        {
            ownedcar[h] = AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
            if(CarInfo[h][cPaintjob] != 999)
            {
                ChangeVehiclePaintjob(h, CarInfo[h][cPaintjob]);
            }
            SetVehicleVirtualWorld(h, CarInfo[h][cVirWorld]);
            SetVehicleModifications(h);
        }
    }
   
    if(!dini_Exists("LARP/Users/Aliases/alias.txt")) dini_Create("LARP/Users/Aliases/alias.txt");
    if(!dini_Exists("LARP/Users/Aliases/ips.txt")) dini_Create("LARP/Users/Aliases/ips.txt");

    SendIP = 0;
    cDebug = 0;
    nextapartment = 24;
    nexthouse = 2;
    nextmedium = 17;
    nextbig = 1;
   
    nextshop = 1;
   
    Predators = 0;
    Rhinos = 0;
    Hunters = 0;
    Hydras = 0;
    admins = 0;
    MinutesTD = 0;
    SecondsTD = 0;
    HoursTD = 0;
    voteyes = 0;
    voteno = 0;
    votation = 0;
    votetype = 0;
    votationrecently = 0;
    beingvoted = 255;
    ServerRestarted = 0;
    new string[MAX_PLAYER_NAME];
    new string1[MAX_PLAYER_NAME];
    new PropertyString[256];
    for(new i = 1; i < MAX_REPORTS; i++) Reports[i] = "<none>";
    for(new c=0;c<MAX_VEHICLES;c++)
    {
        Gas[c] = GasMax;
    }
   
    SetTimer("PeterAC", 1000, true);
    SetTimer("SendMSG", 450000, true);
    SetTimer("ChangeWeather",1200000, true);
    SetTimer("PaySprayTrans",1000,true);
    SetTimer("GpsCheck",1250,true);
   
    new hour,minute,second;
    gettime(hour,minute,second);
    HoursTD = hour;
    MinutesTD = minute;
    SecondsTD = second;
   
    SetTimer("ClockSeconds",1000,true);
   
    LoadMotd();
    LoadEvents();
    ChangeWeather();
        UsePlayerPedsAnims();
Reply
#7

So here it is how itll be..

Quote:
Originally Posted by superbad2116
View Post
Code:
public OnGameModeInit() // Do not add vehicles Above the next lines. - CuervO
{
        UsePlayerPedAnims(); // will use gta sa regular animations..
	ShowPlayerMarkers(2);
	LoadCar();
	new string2[64];
	for(new h = 1; h < sizeof(CarInfo); h++)
	{
		format(string2, sizeof(string2), "LARP/Vehicles/%d.ini",h);
		if(dini_Exists(string2))
		{
			ownedcar[h] = AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
			if(CarInfo[h][cPaintjob] != 999)
			{
				ChangeVehiclePaintjob(h, CarInfo[h][cPaintjob]);
			}
			SetVehicleVirtualWorld(h, CarInfo[h][cVirWorld]);
			SetVehicleModifications(h);
		}
	}
  	
  	if(!dini_Exists("LARP/Users/Aliases/alias.txt")) dini_Create("LARP/Users/Aliases/alias.txt");
    if(!dini_Exists("LARP/Users/Aliases/ips.txt")) dini_Create("LARP/Users/Aliases/ips.txt");

	SendIP = 0;
	cDebug = 0;
	nextapartment = 24;
	nexthouse = 2;
	nextmedium = 17;
	nextbig = 1;
	
	nextshop = 1;
	
	Predators = 0;
	Rhinos = 0;
	Hunters = 0;
	Hydras = 0;
	admins = 0;
	MinutesTD = 0;
	SecondsTD = 0;
	HoursTD = 0;
	voteyes = 0;
	voteno = 0;
	votation = 0;
	votetype = 0;
	votationrecently = 0;
	beingvoted = 255;
	ServerRestarted = 0;
    new string[MAX_PLAYER_NAME];
    new string1[MAX_PLAYER_NAME];
    new PropertyString[256];
    for(new i = 1; i < MAX_REPORTS; i++) Reports[i] = "<none>";
	for(new c=0;c<MAX_VEHICLES;c++)
	{
		Gas[c] = GasMax;
	}
	
	SetTimer("PeterAC", 1000, true);
	SetTimer("SendMSG", 450000, true);
	SetTimer("ChangeWeather",1200000, true);
	SetTimer("PaySprayTrans",1000,true);
	SetTimer("GpsCheck",1250,true);
	
	new hour,minute,second;
	gettime(hour,minute,second);
	HoursTD = hour;
	MinutesTD = minute;
	SecondsTD = second;
	
	SetTimer("ClockSeconds",1000,true);
	
	LoadMotd();
	LoadEvents();
	ChangeWeather();
Reply
#8

I tried private200's and MiGu3X's ideas and it still just crashes when i attempt to compile. Just say its not responding and then i can only exit out
Reply
#9

Without it do u get errors?..or it doesnt crashes?
Reply
#10

Quote:
Originally Posted by superbad2116
View Post
I tried private200's and MiGu3X's ideas and it still just crashes when i attempt to compile. Just say its not responding and then i can only exit out
Learn the structure of code and try again.

Put 'UsePlayerPedAnims();' after the first bracket ('{') after OnGameModeInit.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)