26.04.2013, 15:55
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
if(Teleport[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, "You can't teleport in class section");
return 1;
}
if(indeathmatch[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, "Exit the DM first");
return 1;
}
new Float: X,Float:Y, Float:Z, string[70];
GetPlayerPos(clickedplayerid, X,Y,Z);
SetPlayerPos(playerid, X,Y,Z);
format(string, sizeof(string), "You have teleported to ID: %i", clickedplayerid);
return 1;
}
Player can enable it and disable it. So if he dont need any one to teleport to him he disable it and if he need he enable it
The other thing that the player can teleport to the another player The another player is in dm how to make the player can't teleport inDm players
Thx