Need some help fast :D -
Inc - 22.09.2014
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);
Re: Need some help fast :D -
ranme15 - 22.09.2014
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
Re: Need some help fast :D -
KayJ - 22.09.2014
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
Re: Need some help fast :D -
Stinged - 22.09.2014
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.
|
Re: Need some help fast :D -
XStormiest - 22.09.2014
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...)
Re: Need some help fast :D -
Inc - 22.09.2014
Thx all!, im glad for all of our help! <3
Re: Need some help fast :D -
Inc - 22.09.2014
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);
Re: Need some help fast :D -
ranme15 - 22.09.2014
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();
Re: Need some help fast :D -
Inc - 22.09.2014
i got them there already
Scroll up and look
Re: Need some help fast :D -
ranme15 - 22.09.2014
Quote:
Originally Posted by Inc
i got them there already
|
So, what the problem is?