OnPlayerClickPlayer
#1

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;
}
Thats the code its dont have errors but i need help with 2 things with it
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
Reply


Messages In This Thread
OnPlayerClickPlayer - by DarkB0y - 26.04.2013, 15:55
Re: OnPlayerClickPlayer - by RaZzZzoR - 26.04.2013, 16:02
Re: OnPlayerClickPlayer - by DarkB0y - 26.04.2013, 16:09
Re: OnPlayerClickPlayer - by Pottus - 26.04.2013, 16:37

Forum Jump:


Users browsing this thread: 1 Guest(s)