Coordinates and Command?
#1

The first one is my coordinates.

It's spawning me like this:
https://imgur.com/a/oj6taIV

But i want to spawn me like this:
https://imgur.com/HpQlBQJ

Here is my code:

OnPlayerRequestClass
Код:
SetPlayerPos(playerid, -312.614196, 1541.088134, 75.562500);
    SetPlayerFacingAngle(playerid, 182.975006);
    SetPlayerCameraLookAt(playerid, -312.614196, 1541.088134, 75.562500);
    SetPlayerCameraPos(playerid, -312.614196 + (5 * floatsin(-182.975006, degrees)), 1541.088134 + (5 *
floatcos(-182.975006, degrees)), 75.562500);
    return 1;


The other one is my command.
/cmds.
I made it to a dialogue but i want "***Basic Commands***" to be up and then down to be empty space and then the commands.
But it's showing me like this:
https://imgur.com/a/fA8YTgV


Here's my code:

Command: /cmds
Код:
CMD:cmds(playerid, params[])
{
	new stringer[256];
	strcat(stringer, "{F50000}***Basic Commands***");
	strcat(stringer, "");
	strcat(stringer, "{05FF00}/cmds {FFFFFF}- Shows the list of the commands");
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "{F50000}Porsh Server Commands", stringer, "Close","");
    return 1;
}
Help?
Reply
#2

You should use this:
Код:
SetCameraBehindPlayer(playerid);
Description:
Restore the camera to a place behind the player, after using a function like SetPlayerCameraPos.
Reply
#3

Код:
CMD:cmds(playerid, params[])
{
	new stringer[256];
	strcat(stringer, "{F50000}***Basic Commands***\n\n");
	strcat(stringer, "{05FF00}/cmds {FFFFFF}- Shows the list of the commands");
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "{F50000}Porsh Server Commands", stringer, "Close","");
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)