Need some help fast :D
#1

if i want to set Male/Female in the class selection, how to do that?

Like i want Male over the male's head and Female over the female's head(InText)

//Male
AddPlayerClass(35,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);

//female
AddPlayerClass(38,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
Reply
#2

PHP код:
UsePlayerPedAnims(); // Fixes the CJ's running style
ManualVehicleEngineAndLights(); // Means that the player will control the vehicle engine and lights (engine when entering the vehicle, lights when dark)
LimitGlobalChatRadius(300.0); // Radius limitation for chat, only players at radius of 300 from the player will see the players messages, also effects on map marks 
Reply
#3

Put lines these below OnGamemodeinit

Example:

pawn Код:
public OnGameModeInit()
{
    UsePlayerPedAnims();// Fixes the CJ's running style
    ManualVehicleEngineAndLights();// Means that the player will control the vehicle engine and lights (engine when entering the vehicle, lights when dark)
    LimitGlobalChatRadius(300.0);// Radius limitation for chat, only players at radius of 300 from the player will see the players messages, also effects on map marks  
    return 1;
}
More info:

https://sampwiki.blast.hk/wiki/ManualVehicleEngineAndLights
https://sampwiki.blast.hk/wiki/UsePlayerPedAnims
https://sampwiki.blast.hk/wiki/LimitGlobalChatRadius
Reply
#4

From sa-mp wiki:

UsePlayerPedAnims
Quote:

Uses standard player walking animation (animation of the CJ skin) instead of custom animations for every skin (e.g. skating for skater skins).

ManualVehicleEngineAndLights
Quote:

Use this function before any player connects (OnGameModeInit) to tell all clients that the script will control vehicle engines and lights. This prevents the game automatically turning the engine on/off when players enter/exit vehicles and headlights automatically coming on when it is dark.

LimitGlobalChatRadius
Quote:

Set a radius limitation for the chat. Only players at a certain distance from the player will see their message in the chat. Also changes the distance at which a player can see other players on the map at the same distance.

Reply
#5

I'll answer with those links, read them.

https://sampwiki.blast.hk/wiki/ManualVehicleEngineAndLights
https://sampwiki.blast.hk/wiki/UsePlayerPedAnims
https://sampwiki.blast.hk/wiki/LimitGlobalChatRadius

Hope those links help, and dont rep, I dont need rep, that's not my help, is WIKi help so have fun and learn PAWN. Good luck!
And for the use question, it depends on the gamemode you want to make.
If you make a roleplay I will suggests LimitGlobalChatRadius and even UsePlayerPedAnimes. (LimitGLobal chat is not that usefull, some a callback that I cant remeber its name now...)
Reply
#6

Thx all!, im glad for all of our help! <3
Reply
#7

One more thing, if i want to set Male/Female in the class selection, how to do that?

//Male
AddPlayerClass(35,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);

//female
AddPlayerClass(38,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
Reply
#8

Quote:
Originally Posted by Inc
Посмотреть сообщение
One more thing, if i want to set Male/Female in the class selection, how to do that?

//Male
AddPlayerClass(35,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);

//female
AddPlayerClass(38,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
Add these lines to OnGameModeInit();
Reply
#9

i got them there already



Scroll up and look
Reply
#10

Quote:
Originally Posted by Inc
Посмотреть сообщение
i got them there already
So, what the problem is?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)