Jump to content
  • 0

Problema comanda /gotols


Stefan112

Question

Nush ce are nu merge si am facut si alta si tot la fel

if(strcmp(cmd, "/gotols", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

    if(PlayerInfo[playerid][pJailed] == 1)

{

          //  //SetPlayerSkin(playerid, 62);

          //  SetPlayerWantedLevel(playerid, 0);

//  SetPlayerInterior(playerid, 0);

// SetPlayerPos(playerid,1773.7419,-1572.5045,1735.9430);

          //  new randi;

          //  SetPlayerInterior(playerid, 6);

          //  randi = random(sizeof(JailqSpawns));

SendClientMessage(playerid, COLOR_2RED, "Nu te poti teleporta atata timp cat esti in INCHISOARE!");

return 1;

        }

if (PlayerInfo[playerid][pAdminServer] >= 1 || PlayerInfo[playerid][pHelperLevel] >= 2)

{

if (GetPlayerState(playerid) == 2)

{

new tmpcar = GetPlayerVehicleID(playerid);

SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);

TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;

}

else

{

SetPlayerPos(playerid, 1529.6,-1691.2,13.3);

}

SendClientMessage(playerid, COLOR_GRAD1, "  Ai fost teleportat!");

// SendClientMessage(playerid, COLOR_2RED, "Nu abuza de /goto, iei remove!");

    GetPlayerName(playerid, sendername, sizeof(sendername));

                format(string, 256, "{F3FF02}%s s-a teleportat in Los Santos", sendername);

    ABroadCast(COLOR_YELLOW,string,1);

SetPlayerInterior(playerid,0);

PlayerInfo[playerid][pInt] = 0;

SetPlayerVirtualWorld(playerid, 0);

}

else

{

SendClientMessage(playerid, COLOR_RED, "  Nu esti autorizat sa folosesti aceasta comanda!");

}

}

return 1;

}

PS:gireada ai zis de acum o sapt ca-mi faci si mie gamemode-ul pe dini dar nu ai mai intrat

Scripting for $$ .

CONTACT: [email protected] .

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

comanda ta e cam aiurea

incearca asta:

[pawn]if(strcmp(cmd, "/gotols", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

            if(PlayerInfo[playerid][pJailed] == 1)

          {

            SendClientMessage(playerid, COLOR_2RED, "Nu te poti teleporta atata timp cat esti in INCHISOARE!");

        return 1;

if (PlayerInfo[playerid][pAdminServer] >= 1 || PlayerInfo[playerid][pHelperLevel] >= 2)

{

if (GetPlayerState(playerid) == 2)

{

new tmpcar = GetPlayerVehicleID(playerid);

SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);

TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;

}

else

{

SetPlayerPos(playerid, 1529.6,-1691.2,13.3);

}

SendClientMessage(playerid, COLOR_GRAD1, "  You have been teleported !");

SetPlayerInterior(playerid,0);

PlayerInfo[playerid][pInt] = 0;

}

else

{

SendClientMessage(playerid, COLOR_GRAD1, "  You are not authorized to use that command !");

}

}

return 1;

}[/pawn]

<a href="http://www.game-state.com/94.177.106.162:7777/"><img src="http://www.game-state.com/94.177.106.162:7777/430x73_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.com" style="border-style: none;" /></a>

Link to comment
Share on other sites

if(strcmp(cmd, "/gotols", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

if(PlayerInfo[playerid][pAdmin] >= 3)

{

if (GetPlayerState(playerid) == 2)

{

new tmpcar = GetPlayerVehicleID(playerid);

SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);

TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;

}

else

{

SetPlayerPos(playerid, 1529.6,-1691.2,13.3);

}

SendClientMessage(playerid, COLOR_GRAD1, "  You have been teleported !");

SetPlayerInterior(playerid,0);

PlayerInfo[playerid][pInt] = 0;

SetPlayerVirtualWorld(playerid, 0);

    PlayerInfo[playerid][pVirWorld] = 0;

}

else

{

SendClientMessage(playerid, COLOR_GRAD1, "Nu ai acces la aceasta comanda.");

}

}

return 1;

}

si-ti mai adaugi tu ce vrei, pozitie..

Link to comment
Share on other sites

[pawn]//=============================================================================================================================================================

// = Comanda: /gotols

//=============================================================================================================================================================

if(strcmp(cmd, "/gotols", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2)

{

if (GetPlayerState(playerid) == 2)

{

new tmpcar = GetPlayerVehicleID(playerid);

SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);

TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;

}

else

{

SetPlayerPos(playerid, 1529.6,-1691.2,13.3);

}

SendClientMessage(playerid, COLOR_GRAD1, "{30a030}[infinity]: {ffd700}Ai fost Teleportat cu succes.");

SetPlayerInterior(playerid,0);

PlayerInfo[playerid][pInt] = 0;

}

else

{

SendClientMessage(playerid, COLOR_GRAD1, "{30a030}[infinity]: {FFFFFF}Ne pare rau, dar nu ai acces la aceasta comanda.");

}

}

return 1;

}[/pawn]

<a href="http://www.game-state.eu/94.60.40.50:7777/"><img src="http://www.game-state.eu/94.60.40.50:7777/n-560x95_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Link to comment
Share on other sites

[pawn]

if(strcmp(cmd, "/gotols", true) == 0)

{

if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2)

{

if (GetPlayerState(playerid) == 2)

{

new tmpcar = GetPlayerVehicleID(playerid);

SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);

TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;

}

else

{

SetPlayerPos(playerid, 1529.6,-1691.2,13.3);

}

SendClientMessage(playerid, COLOR_GRAD1, "{30a030}[infinity]: {ffd700}Ai fost Teleportat cu succes.");

SetPlayerInterior(playerid,0);

PlayerInfo[playerid][pInt] = 0;

}

else

{

SendClientMessage(playerid, COLOR_GRAD1, "{30a030}[infinity]: {FFFFFF}Ne pare rau, dar nu ai acces la aceasta comanda.");

}

return 1;

}

[/pawn]

Acel isPlayerConencted nu isi are rostul acolo, de asemenea daca tot nu merge incearca ce a zis Gireada

Eu sunt nimeni. Dar prefer sa fiu un nimeni inconjurat de prieteni adevarati, decat un om faimos inconjurat de falsi.

Nu sunt un scripter perfect, nu sunt nici macar pe aproape, insa in in ciuda acestui fapt incerc sa invat sa le fac pe toate.

Link to comment
Share on other sites

Buna Ziua, :D

Fao pe ZCMD

Respect gireada k ii pui s-o faca singur.

In fine comanda

CMD:gotols(playerid, params[])
	{
			if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2)
			{
				if (GetPlayerState(playerid) == 2)
				{
					new tmpcar = GetPlayerVehicleID(playerid);
					SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
					TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
				}
				else
				{
					SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
				}
				SendClientMessage(playerid, COLOR_GRAD1, "{30a030}[Infinity]: {ffd700}Ai fost Teleportat cu succes.");
				SetPlayerInterior(playerid,0);
				PlayerInfo[playerid][pInt] = 0;
                                SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "{30a030}[Infinity]: {FFFFFF}Ne pare rau, dar nu ai acces la aceasta comanda.");
			}
		return 1;
	}

M-am lasat de comunitatea sa-mp.ro

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.