Jump to content
  • 0

Question

5 answers to this question

Recommended Posts

Posted

Stergi din comanda goto AdmCMD("GOTO"); sau asa ceva

sau daca nu vrei sa mai apara la nici o comanda ce-au folosit adminii scrii in chat

/disable admincmdmsgs

Guest EmanuEl
Posted

GetPlayerName(playerid, sendername, sizeof(sendername));
printf("AdmCmd: %s s-a teleportat cu comanda /goto",sendername,  giveplayer);
format(string, sizeof(string), "AdmCmd: %s s-a teleportat cu comanda /goto",giveplayer ,sendername);
ABroadCast(COLOR_LIGHTRED,string,1);
° Adaugi asta la fiecare comanda de teleport . Iti fac aici un exemplu :

//----------------------------------[GOTO]-----------------------------------------------
	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);
				}
                                GetPlayerName(playerid, sendername, sizeof(sendername));
                                printf("AdmCmd: %s s-a teleportat cu comanda /gotols",sendername,  giveplayer);
                                format(string, sizeof(string), "AdmCmd: %s s-a teleportat cu comanda /gotols",giveplayer ,sendername);
                                ABroadCast(COLOR_LIGHTRED,string,1)
				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;
	}

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.