05.07.2011, 01:37
would be cool if there was
AttachObjectToNPC....
AttachObjectToNPC....
MovePickup(pickupid, Float:x, Float:y, Float:z, Float:speed);
RotateObject(objectid, Float:rX, Float:rY, Float:rZ, Float:speed);
ChangeVehicleColor(vehicleid, color1, color2, color3, color4); // 4 colours for Squalo, Cement Truck and Camper.
GetVehicleColor(vehicleid, &color1, &color2, &color3, &color4);
GetVehiclePaintjob(vehicleid);
SetPlayerCheckpoint(playerid, Float:x, Float:y, Float:z, Float:size, color); // Just add color param (color in hex).
GetVehicleXAngle(vehicleid, &Float:x_angl);
SetVehicleXAngle(vehicleid, Float:x_angl);
GetVehicleYAngle(vehicleid, &Float:y_angl);
SetVehicleYAngle(vehicleid, Float:y_angl);
GetPlayerOxygen(playerid, &Float:oxygen);
SetPlayerOxygen(playerid, Float:oxygen);
GetPlayerMaxHealth(playerid, &Float:maxhealth);
SetPlayerMaxHealth(playerid, Float:maxhealth);
new weather[MAX_PLAYERS];
forward SetPlayerWeatherEx(playerid, weatherid);
public SetPlayerWeatherEx(playerid, weatherid)
{
weather[playerid] = weatherid;
SetPlayerWeather(playerid, weatherid);
}
forward GetPlayerWeather(playerid);
public GetPlayerWeather(playerid)
{
return weather[playerid];
}
GetServerVarAsInt("weather");
native SetDialogPosition(dialogid, Float:x, Float:y);//Sets the dialog's position. [Like a textdraw?]
native SetDialogBackgroundColor(dialogid, color); // Color is hex. (Not sure if this is possible though)
native SetDialogControllable(dialogid, bool:toggle); // Allow/disallow activation of the buttons of the dialog.
native SetDialogSize(dialogid, Float:sizex, Float:sizey);//Set's the dialog's size
native SetPlayerMouseControllable(playerid, bool:toggle); //Allows/disallows use of a player's mouse when in a dialog/has the chat box open.
native TogglePlayerChatbox(playerid, bool:toggle, bool:reactivate); //Toggles the player's chatbox, third param allows/disallows him to reactivate his chatbox using the F7 key.