How does UsePlayerPedAnims(); works ?
#1

I want suicide , Where and how to use this function

As wiki says I need to put it under OnGameModeInit(), but its still not working, actualy only way how to get it work is to put under OnPlayerSpawn(), but than its works only for ID 0, so what should I do?

Does I need it before AddPlayerClass(.. or after it, or its nothing to do with PedAnims... ?

PS. I have already readed all posts where this function figuring.
Reply
#2

pawn Код:
public OnGameModeInit() //ServerStart
{
    UsePlayerPedAnims();
    SetNameTagDrawDistance(10);
    DisableInteriorEnterExits();
    ShowPlayerMarkers(0);
    AllowAdminTeleport(1);
    EnableStuntBonusForAll(0);
    AllowInteriorWeapons(1);
    SetGameModeText("Role Play");
    SendRconCommand("mapname San Andreas");
    format(hostname,sizeof(hostname),"hostname %s",ServerName);
    SendRconCommand(hostname);
    for(new c=0;c<MAX_VEHICLES;c++) { Fuel[c] = 100; }
    LoadHouse();
    LoadEnters();
    LoadBusiness();
...
What else should I do?
Reply
#3

Try to search a bit next time but here is the link
CLICK ME!
Reply
#4

This is what I expect

Quote:
Original by Voldemort
As wiki says I need to put it under OnGameModeInit(), but its still not working

Reply
#5

How does it not work?!
Reply
#6

It has CJ run style

Aka "I run fast" aka "when I start game , not online" aka "Fast walk style" aka "Non CJ"
each person call it different
Reply
#7

Quote:
Originally Posted by Voldemort
Посмотреть сообщение
Where and how to use this function
Use UsePlayerPedAnims to run like CJ.
Remove it if you want to run like a pedestrian.
Reply
#8

Then DON'T use UsePlayerPedAnims();, take it AWAY.
Reply
#9

So its works oposite?

wtf than, than its like SetPlayerHealth(.. means to not set health


Anyway, thank you all, else I just wanted to kill my self. xD
Reply
#10

Question. . . Is it possible to enable this function for one player only? If I want to make certain players faster than the others.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)