Jump to content

Question

Posted

Salut va rog spunetimi si mie ce reprezinta acest

30
din:

[pawn] if (PlayerToPoint(30, playerid,1024.9866,-1033.7882,31.7560))[/pawn]

Si daca ati vrea va rog vreau si eu sa stiu cum pot face sa teleportez playerul la niste coordonate

HostName: [RPG]*|| Ecila Royal Gaming ||*-WIPED

Address:  93.114.82.70:7777

1 answer to this question

Recommended Posts

Posted

30 e distanta catre acel punct

Pt teleport incearca asta

	if(strcmp(cmd, "/teleport", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
			if(PlayerInfo[playerid][pAdmin] >= 2) // Modifica in functie de cum ai GM'ul
			{
				tmp = strtok(cmdtext, idx);
				if(!strlen(tmp))
				{
					SendClientMessage(playerid, COLOR_WHITE, "USAGE: /teleport[playerid/PartOfName]");
					return 1;
				}
				giveplayerid = ReturnUser(tmp);
				if(IsPlayerConnected(giveplayerid))
				{
					if(giveplayerid != INVALID_PLAYER_ID)
					{
						PlayerInfo[playerid][pVirtualWorld] = 0;
               			SetPlayerInterior(giveplayerid, 0);
               			SetPlayerVirtualWorld(giveplayerid, 0);
                     	SetPlayerPos(giveplayerid, x, y, z);
                    	SendClientMessage(giveplayerid, COLOR_GRAD1, "   You have been teleported !");
					}
           		}
			}
			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.