Sets the gravity for a specific player. Parameters: * playerid - The ID of the player to set the gravity of. * gravity - The value that the gravity should be set to (between -50.0 and 50.0). Returns 1 on success or 0 if the specified player isn't connected or the gravity parameter is incorrect.
Sets the name of one player for another player. Parameters: * playerid - The ID of the player to set the name of. * forplayerid - The ID of the player who will see the name change of playerid. * name[] - The name to set. Must be 1-24 characters long and only contain valid characters (0-9, a-z, A-Z, [], (), $ @ . _ and =). Returns: 1 if the name was successfully changed. 0 if the name is already used by someone (including playerid) or the specified player(s) isn't connected. -1 if the name cannot be changed for other reasons (too long/short or has invalid characters).
Sets the skill level of a certain weapon type of one player for another player. Parameters: * playerid - The ID of the player to set the weapon skill of. * forplayerid - The ID of the player who will see the weapon skill change of playerid. * skill - The ID of the weapon skill (not the ID of the weapon). * level - The skill level ranging from 0 to 999. A value that exceeds this range will be perceived as 999. Returns 1 on success or 0 if the specified player(s) isn't connected or the skill parameter is incorrect.
Sets the special fighting style of one player for another player. To use in-game, aim and press the 'secondary attack' key (ENTER by default). Parameters: * playerid - The ID of the player to set the fighting style of. * forplayerid - The ID of the player who will see the fighting style change of playerid. * style - The ID of the fighting style that should be set. Returns 1 on success or 0 if the specified player(s) isn't connected or the style parameter is incorrect.
Sets the team of one player for another player. Parameters: * playerid - The ID of the player to set the team of. * forplayerid - The ID of the player who will see the team change of playerid. * teamid - The ID of the team to put the player in. Use NO_TEAM to remove any team. Returns 1 on success or 0 if the specified player(s) isn't connected.
Sets the skin of one player for another player. Parameters: * playerid - The ID of the player to set the skin of. * forplayerid - The ID of the player who will see the skin change of playerid. * skinid - The ID of the skin the player should use. Returns 1 on success or 0 if the specified player(s) isn't connected.
Apply an animation to one player for another player. Parameters: * playerid - The ID of the player to apply the animation to. * forplayerid - The ID of the player who will see the animation change of playerid. * animlib[] - The animation library from which to apply an animation. * animname[] - The name of the animation to apply, within the specified library. * fDelta - The speed to play the animation. * loop - Whether it will loop (1) or not (0). * lockx, locky - If set to 0, the player will be returned to his old X and Y coordinates once the animation is complete. * freeze - Setting this to 1 will freeze the player at the end of the animation. * time - Timer in milliseconds. For a never-ending loop it should be 0. Returns 1 on success or 0 if the specified player(s) isn't connected.
Clears all animations of one player for another player. Parameters: * playerid - The ID of the player to clear the animations of. * forplayerid - The ID of the player who will see the animation stop of playerid. Returns 1 on success or 0 if the specified player(s) isn't connected.
Creates a chat bubble (3D text) above one player's name tag for another player. Parameters: * playerid - The player which should have the chat bubble. * forplayerid - The ID of the player who will see the chat bubble above playerid. * text[] - The text to display. * color - The text color. * drawdistance - The distance from which forplayerid is able to see the chat bubble. * expiretime - The time in milliseconds the bubble should be displayed for. Returns 1 on success or 0 if the specified player(s) isn't connected.
Attach an object to a specific bone on a player for another player. Parameters: * playerid - The ID of the player to attach the object to. * forplayerid - The ID of the player who will see the attached object to playerid. * index - The index (slot) to assign the object to (from 0 to 9). * modelid - The model to attach. * bone - The bone to attach the object to. * fOffsetX - X axis offset for the object position (0.0 by default). * fOffsetY - Y axis offset for the object position (0.0 by default). * fOffsetZ - Z axis offset for the object position (0.0 by default). * fRotX - X axis rotation of the object (0.0 by default). * fRotY - Y axis rotation of the object (0.0 by default). * fRotZ - Z axis rotation of the object (0.0 by default). * fScaleX - X axis scale of the object (1.0 by default). * fScaleY - Y axis scale of the object (1.0 by default). * fScaleZ - Z axis scale of the object (1.0 by default). * materialcolor1 - The first object color to set, as an integer or hex in ARGB color format (0 by default). * materialcolor2 - The second object color to set, as an integer or hex in ARGB color format (0 by default). Returns 1 on success or 0 if the specified player(s) isn't connected or the index parameter is incorrect.
Removes an attached object from one player for another player. Parameters: * playerid - The ID of the player to remove the object from. * forplayerid - The ID of the player who will see the removal of the attached object from playerid. * index - The index (slot) of the object to remove (set with SetPlayerAttachedObject). Returns 1 on success or 0 if the specified player(s) isn't connected or the index parameter is incorrect.
Changes a vehicle's primary and secondary colors for a specific player. Parameters: * playerid - The ID of the player for whom you want to change the colors of the specified vehicle. * vehicleid - The ID of the vehicle to change the colors of. * color1 - The new vehicle's primary color ID. * color2 - The new vehicle's secondary color ID. Returns 1 on success or 0 if the specified player or vehicle doesn't exist.
Changes a vehicle's paintjob for a specific player. Parameters: * playerid - The ID of the player for whom you want to change the paintjob of the specified vehicle. * vehicleid - The ID of the vehicle to change the paintjob of. * paintjobid - The ID of the paintjob to apply. Use 3 to remove a paintjob. Returns 1 on success or 0 if the specified player or vehicle doesn't exist.
Adds a tuning component (modification) to a vehicle for a specific player. Parameters: * playerid - The ID of the player for whom you want to add the component to the specified vehicle. * vehicleid - The ID of the vehicle to add the component to. * componentid - The ID of the component to add to the vehicle. Returns 1 on success or 0 if the specified player or vehicle doesn't exist.
Removes a tuning component from a vehicle for a specific player. Parameters: * playerid - The ID of the player for whom you want to remove the component from the specified vehicle. * vehicleid - The ID of the vehicle to remove the component from. * componentid - The ID of the component to remove. Returns 1 on success or 0 if the specified player or vehicle doesn't exist.
Links a vehicle to an interior for a specific player. Parameters: * playerid - The ID of the player for whom you want to change the interior of the specified vehicle. * vehicleid - The ID of the vehicle to link to an interior. * interiorid - The interior ID to link it to. Returns 1 on success or 0 if the specified player or vehicle doesn't exist.
Sets a vehicle number plate for a specific player. Parameters: * playerid - The ID of the player for whom you want to change the number plate of the specified vehicle. * vehicleid - The ID of the vehicle to set the number plate of. * numberplate[] - The text that should be displayed on the number plate. Returns 1 on success or 0 if the specified player or vehicle doesn't exist.
Sets a vehicle's health for a specific player. Parameters: * playerid - The ID of the player for whom you want to change the health of the specified vehicle. * vehicleid - The ID of the vehicle to set the health of. * health - The health, given as a float value. Returns 1 on success or 0 if the specified player or vehicle doesn't exist.
Sets the various visual damage statuses of a vehicle for a specific player. For example, popped tires, broken lights and damaged panels. Parameters: * playerid - The ID of the player for whom you want to change the damage status of the specified vehicle. * vehicleid - The ID of the vehicle to set the damage of. * panels - A set of bits containing the panel damage status. * doors - A set of bits containing the door damage status. * lights - A set of bits containing the light damage status. * tires - A set of bits containing the tire damage status. Returns 1 on success or 0 if the specified player or vehicle doesn't exist.
Fully repairs a vehicle for a specific player, including visual damage (bumps, dents, scratches, popped tires). Parameters: * playerid - The ID of the player for whom you want to repair the specified vehicle. * vehicleid - The ID of the vehicle to repair. Returns 1 on success or 0 if the specified player or vehicle doesn't exist.
Sets a vehicle's position for a specific player. Parameters: * playerid - The ID of the player for whom you want to change the position of the specified vehicle. * vehicleid - The ID of the vehicle that you want to set new position. * x - The X coordinate to position the vehicle at. * y - The Y coordinate to position the vehicle at. * z - The Z coordinate to position the vehicle at. Returns 1 on success or 0 if the specified player or vehicle doesn't exist.
Sets the Z rotation (yaw) of a vehicle for a specific player. Parameters: * playerid - The ID of the player for whom you want to change the Z angle of the specified vehicle. * vehicleid - The ID of the vehicle to set the rotation of. * z_angle - The Z angle to set. Returns 1 on success or 0 if the specified player or vehicle doesn't exist.
Sets the X, Y and Z velocity of a vehicle for a specific player. Parameters: * playerid - The ID of the player for whom you want to change the velocity of the specified vehicle. * vehicleid - The ID of the vehicle to set the velocity of. * X - The velocity in the X direction. * Y - The velocity in the Y direction. * Z - The velocity in the Z direction. Returns 1 on success or 0 if the specified player or vehicle doesn't exist.
Sets the angular X, Y and Z velocity of a vehicle for a specific player. Parameters: * playerid - The ID of the player for whom you want to change the angular velocity of the specified vehicle. * vehicleid - The ID of the vehicle to set the angular velocity of. * X - The amount of velocity in the angular X direction. * Y - The amount of velocity in the angular Y direction. * Z - The amount of velocity in the angular Z direction. Returns 1 on success or 0 if the specified player or vehicle doesn't exist.
Attach a vehicle to another vehicle as a trailer for a specific player. Parameters: * playerid - The ID of the player for whom you want to attach the trailer to the specified vehicle. * trailerid - The ID of the vehicle that will be attached to vehicleid. * vehicleid - The ID of the vehicle to which trailerid will be attached. Returns 1 on success or 0 if the specified player or vehicle(s) doesn't exist.
Detach the connection between a vehicle and its trailer for a specific player. Parameters: * playerid - The ID of the player for whom you want to detach the trailer from the specified vehicle. * vehicleid - The ID of the vehicle to detach the trailer from. Returns 1 on success or 0 if the specified player or vehicle(s) doesn't exist.
v1.0 * Initial release v1.1 * Fixed SetPlayerNameForPlayer function v1.2 * Compatibility with the latest Pawn.RakNet plugin version
stock ToggleWidescreenForPlayer(playerid, bool:enable)
{
if(!IsPlayerConnected(playerid))
return false;
new BitStream:bs = BS_New();
BS_WriteValue(
bs,
PR_BOOL, enable
);
BS_RPC(bs, playerid, 0x6F);
BS_Delete(bs);
return true;
}
I can give you some functions.
I made an include with a lot of functions like this. Below there's one.: PHP Code:
|
Thanks, but it seems that this function is unstable, therefore it's hidden and inaccessible in samp by default. As far as I remember, different players had black bars at the top and bottom of the screen, while others didn't have them and only the hood was hidden.
|
Thanks, but it seems that this function is unstable, therefore it's hidden and inaccessible in samp by default. As far as I remember, different players had black bars at the top and bottom of the screen, while others didn't have them and only the hood was hidden.
|