08.01.2013, 18:25
Quote:
some interesting functions
pawn Code:
|
PlayerTextDrawColor
TextDrawColor(Example, 0x000000ff);
PlayerTextDrawColor(playerid, pTextdraw[playerid], 0xff0000ff);
red - alpha channel
some interesting functions
pawn Code:
|
SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX = 0.0, Float:fOffsetY = 0.0, Float:fOffsetZ = 0.0, Float:fRotX = 0.0, Float:fRotY = 0.0, Float:fRotZ = 0.0, Float:fScaleX = 1.0, Float:fScaleY = 1.0, Float:fScaleZ = 1.0, materialcolor1 = 0, materialcolor2 = 0, txdname[], texturename[]);
MoveTextdraw(Text:text, Float:x, Float:y, Float:speed);//Move to the specified position
(Changing texture for player attached objects, don't forget to support for changing multiple textures)
AttachPlayerObjectToPlayerObject(playerid, objectid, attachtoid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ, SyncRotation = 1);
//Really useful for object streamers to attach unlimited number of objects to a single object, so that moving the whole set of objects is easier
GetPlayerScreenResolution(playerid, width, height);
IsPlayerUsesWidescreenMode(playerid);//Return GTA:SA's settings
//Useful for creating automatic widescreen mode for the UI/textdraws of the server.
public OnAudioStreamPlay(playerid, handleid);
public OnAudioStreamStop(playerid, handleid);
//Same as audio plugin by Incognito. It means PlayAudioStreamForPlayer should also return a handle ID.
(Larger font size for DIALOG_STYLE_MSGBOX, DIALOG_STYLE_INPUT and DIALOG_STYLE_PASSWORD on smaller screen resolution like 1024x768, same size as DIALOG_STYLE_LIST is good)
(Dynamically adjust the dialog size for lists and the caption)
(Change the font of the whole game into others, so that "I" and "l" can be easily recognised)
TextDrawColor
PlayerTextDrawColor TextDrawColor(Example, 0x000000ff); PlayerTextDrawColor(playerid, pTextdraw[playerid], 0xff0000ff); red - alpha channel |
DisableGambling() - self explanitory. New type of dialog boxes - drop down
native GetPlayerFPS(playerid)
RemovePlayerHud(playerid); // Remove The Money, HP, Weapon etc. ShowPlayerHud(playerid); RemovePlayerRadar(playerid); //remove the radar and all markers on the minimap ShowPlayerRadar(playerid);
pawn Код:
|
PlayAudioStreamForVehicle(vehicleid, Float:distance = 50.0)
CreateExplosion(Float:X, Float:Y, Float:Z, type, Float:radius, interior, virtualworld)
pawn Code:
|
My little suggestions are:
Code:
GetPlayerCPU(playerid); GetPlayerGPU(playerid); GetPlayerRAM(playerid, USED/FREE/TOTAL); |
I got it. But I have a question, many users requested these:
pawn Code:
|
1- fixing the bugs that occur after server restart (like weapons sounds , deathbug , ban bug)
2- fix Kick(); onplayerconnect |
native EnableSpeedBlurForPlayer(playerid, bool:blur);
native SetWaterHeight(Float: z);
native SetCheckpointColor(checkpointid, color);
native EnableExtraEffectForPlayer(playerid, bool:effect);
native AllowCleoMods(bool:cleo);