23.03.2012, 10:12
OnPlayerChangeRadioStation(playerid, station);
I'm on my phone. Sorry for the short message.
I'm on my phone. Sorry for the short message.
SelectTextDraw(playerid, hovercolor, bool:hideplayerhud = true)
native ToggleMovingSpecificDialog(dialogid, enable); // this function can enable move dialog with specific ID
native ToggleMovingAllDialogs(playerid, enable); // this function can enable moving all dialogs
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
ToggleMovingAllDialogs(playerid, enable); // if this function will be enabled, all dialogs can be moved and function under ShowPlayerDialog (ToggleMovingSpecificDialog(1, enable/disable)) will be ignored
// but! If ToggleMovingAllDialogs(playerid, enable/disable); has second parameter set to disable, all dialogs can be moved separately
ToggleMovingAllDialogs(playerid, disable);
if(dialogid == 1 && response)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Hello", "So... Hello?", "Okay", "Cancel");
// If "ToggleMovingAllDialogs(playerid, enable/disable)" has 2nd parameter to disable, function below could be work
ToggleMovingSpecificDialog(1, enable); // this dialog will be moved or if on above OnDialogResponse is "ToggleMovingAllDialogs(playerid, enable);", this function will be ignored
}
else if(dialogid == 2 && response)
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Hello 2", "Hello there", "Okay", "Cancel");
ToggleMovingSpecificDialog(2, disable); // this dialog won't be moved or if on above OnDialogResponse is "ToggleMovingAllDialogs(playerid, enable);", this function will be ignored
}
return 0;
}
native MoveTextDrawByMouse(textdraw);
public OnMouseShown(playerid, selectmode, shown)
{
if(selectmode == SELECT_MODE_TEXTDRAW) return selectmode = SELECT_MODE_OBJECT;
else shown = false;
}
Invisiblemouse(playerid);
native Float:GetPlayerGroundZ(playerid, Float:x, Float:y, Float:z);
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/undercover", cmdtext, true) == 0)
{
new Float:x, Float:y, Float:z
new Float:gz;
GetPlayerPos(playerid, x, y, z);
gz = GetPlayerGroundZ(playerid, x, y, 400);
if(gz == z) SendClientMessage(playerid, -1, "You are not under cover");
else SendClientMessage(playerid, -1, "You are undercover");
return 1;
}
return 0;
{
GetPlayerClientID(playerid);
IsPlayerClientIDBanned(playerid);
SetPlayerClientIDBanned(ID[]);
new str[32];
format(str,sizeof(str),"%s",GetPlayerClientID(playerid));// ID: fsenjfh24398tgnd23h
SetPlayerClientIDBanned(str);
public OnPlayerConnect(playerid)
{
if(IsPlayerClientIDBanned(playerid))Kick(playerid);
return 1;
}
Would be cool to be able to get the screen position of a point in the 3D world.
If someone is smart enough to script or already has scripted it, PM the code to me and I will give a cookie. |
SetPlayerClass(playerid, classid) would be nice to set the players class id at the class selection. So for example if a player chooses class id 43 and then leaves the server, you can set the class back to 43 next time they rejoin rather than starting from 0 again.
|
Would be cool to be able to get the screen position of a point in the 3D world.
If someone is smart enough to script or already has scripted it, PM the code to me and I will give a cookie. |