26.04.2013, 16:02
Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source) { if(Teleport[playerid] == 1 || indeathmatch[playerid] == 1) { SendClientMessage(playerid, COLOR_RED, "Exit the DM first"); return 1; } else { 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); } if(Teleport[playerid] == 0 || indeathmatch[playerid] == 0) { //Stuff here } return 1; }