14.01.2013, 17:30
Suggestions Thread
14.01.2013, 17:45
You can see by function name, that SetPlayerListenKeyFrequency wouldn't somehow related with spam. I'm sure he meant something like SetPlayerKeyboardListenRate, I'm not sure how to explain it, with easy words it would be like how many characters can be wrote by just holding a key. I don't think it would be useful.
14.01.2013, 17:47
Quote:
I don't quite understand what is SetPlayerListenKeyFrequency?
|
Yes, but only server-side. SetPlayerListenKeyFrequency make safe traffic.
Quote:
You can see by function name, that SetPlayerListenKeyFrequency wouldn't somehow related with spam. I'm sure he meant something like SetPlayerKeyboardListenRate, I'm not sure how to explain it, with easy words it would be like how many characters can be wrote by just holding a key.
|
Why not? I explained this:
pawn Код:
native SetPlayerListenKeyFrequency(playerid, counts, pertime) - Available Frequency (counts per time).
// Example: SetPlayerListenKeyFrequency(playerid, 10, 5000); 10 count of push in 5 seconds Available. (Other Client must NOT SENDING TO SERVER) - (and server must protect if client not follow this rule, disconnect (scriptable or in code samp-server)).
native SetPlayerListenKey(playerid, keycode, bool:toggle) - return true or false.
// Example: SetPlayerListenKey(playerid, KEY_CODE_ENTER, true);
native GetPlayerListenedKey(playerid, keycode) - return true or false
// Example: GetPlayerListenedKey(playerid, KEY_CODE_ENTER); Should return TRUE if key is down.
public OnListenedKeyResponse(playerid, keycode, updown);
///////////////////////////////////////////////////////////////////////////
// Example script:
public OnPlayerConnect(playerid) {
SetPlayerListenKeyFrequency(playerid, 10, 5000);
SetPlayerListenKey(playerid, KEY_CODE_ENTER, true);
SetPlayerListenKey(playerid, KEY_CODE_F12, true);
}
public OnListenedKeyResponse(playerid, keycode, isdown) {
if(keycode == KEY_CODE_ENTER && isdown) { // DOWN
// Show dialog text "You Pushed ENTER"
} else if(keycode == KEY_CODE_F12) {
if(isdown) { // DOWN
// SHOW TEXTDRAW (CLOCK - TIME)
// Send Chat, like: /me looked watch
// Aply animation (see on clock (hand))
} else { // UP
// HIDE TEXTDRAW (CLOCK - TIME)
// CLEAR animation (see on clock (hand))
}
}
}
///////////////////////////////////////////////////////////////////////////
14.01.2013, 21:27
Is it possible to place the materialtext on the floor?
14.01.2013, 22:53
pawn Код:
DisableWeatherEffectsInArea(Float:Xmin, Float:Ymin, Float:Xmax, Float:Ymax); //Rain, Sand Storm, Clouds, maybe birds?
SetLightLevelInArea(Float:Xmin, Float:Ymin, Float:Xmax, Float:Ymax, Amount); //If Amount is in -, area will be darker, if it's in + area will be brighter...
//Both functions are good for custom interiors etc...
pawn Код:
AddWaterToArea(Float:Xmin, Float:Ymin, Float:Xmax, Float:Ymax, Amount); //Good for swimming pools etc...
pawn Код:
server.cfg
DisableRconLog 0/1 // Disable Logging for unsuccess remote rcon login (if rcon is on 1).
BanIPOnBadRconLogin 0-? // BanIP from remote login after specified amount of logins...
pawn Код:
//Increase the limit of MAX_VEHICLES, 2000 is not enough for whole San Andreas...
pawn Код:
SetObjectSolid(objectid, bool:solid); //true to make object solid if it's not, and false to make object unsolid if it's solid...
MakeObjectDamageable(objectid, Float:health);
15.01.2013, 03:46
Код:
TogglePlayerControllable(playerid, bool: controllable, bool: lockCamera = true);
15.01.2013, 06:47
1. Changable engine in vehicles like: a Infernus motor in a Bullet etc...
2. SetObjectMatrial on vehicle parts..
3.
2. SetObjectMatrial on vehicle parts..
3.
15.01.2013, 07:17
I don't think you would be able to set the engines because the engines are apart of the car model. As for SetObjectMaterial on vehicle parts, you could just create the objects with SetObjectMaterial and then attach them to the vehicle.
15.01.2013, 07:25
15.01.2013, 07:34
ToggleClassSelectionForPlayer(playerid, toggle);
if toggle is zero player can't use F4 key to switch class.
if toggle is zero player can't use F4 key to switch class.
15.01.2013, 07:53
Quote:
Код:
TogglePlayerControllable(playerid, bool: controllable, bool: lockCamera = true); |
pawn Код:
// Example: new TogglePlayerControllableEx (without mouse blocking)
stock TogglePlayerControllableEx(playerid, bool:toggle) {
TogglePlayerControllableKey(playerid, KEY_UP, toggle);
TogglePlayerControllableKey(playerid, KEY_DOWN, toggle);
TogglePlayerControllableKey(playerid, KEY_LEFT, toggle);
TogglePlayerControllableKey(playerid, KEY_RIGHT, toggle);
TogglePlayerControllableKey(playerid, KEY_CROUCH, toggle);
TogglePlayerControllableKey(playerid, KEY_JUMP, toggle);
TogglePlayerControllableKey(playerid, KEY_FIRE, toggle);
TogglePlayerControllableKey(playerid, KEY_SECONDARY_ATTACK toggle);
}
15.01.2013, 08:12
pawn Код:
native EnableProperlyPlayerAndVehicleSynchronisation()
New parameter at the "TogglePlayerControllable" native.
pawn Код:
TogglePlayerControllable(playerid, bool:MovementToggle, bool:AimToggle)
15.01.2013, 09:11
Код:
Drop(playerid);
15.01.2013, 09:31
Quote:
pawn Код:
New parameter at the "TogglePlayerControllable" native. pawn Код:
|
15.01.2013, 09:51
Maybe skin offsets? Size information on skins.
E.G - Height, width etc.
E.G - Height, width etc.
15.01.2013, 10:00
15.01.2013, 10:09
Thank you Lorenc, I will try it out!
I've come up with a new suggestion as well, right now.
Since we can change object's textures, can we change the weapon's textures as well? Like a camouflage.
The native:
If the sprite value will be "0", the weapon will return to it's original state.
I've come up with a new suggestion as well, right now.
Since we can change object's textures, can we change the weapon's textures as well? Like a camouflage.
The native:
pawn Код:
native SetWeaponTexture(WeaponID, sprite[], transparency);
native SetWeaponTextureForPlayer(PlayerID, WeaponID, sprite[], transparency);
15.01.2013, 10:12
Quote:
If I remember correctly, Kalcor added vehicle data information... That could of been scripted to work that out.
Yet that was added. |
https://sampwiki.blast.hk/wiki/GetVehicleModelInfo
16.01.2013, 11:26
Maybe usage of Colour Embedding in textdraws will be great like.
16.01.2013, 11:36
Would be cool if sa-mp 0.3x would allow to change player skins to own created ones.
Also it would be cool if we could format textdraw string with varous colors and not only with gametext ones. something like this "{FF0000}Welcome to {FFF000F}Super Roleplay {0x0FFFFFF}!"
Also it would be cool if we could format textdraw string with varous colors and not only with gametext ones. something like this "{FF0000}Welcome to {FFF000F}Super Roleplay {0x0FFFFFF}!"
« Next Oldest | Next Newest »
Users browsing this thread: 16 Guest(s)