02.06.2014, 16:09
Here's the code.
Thanks.
pawn Код:
forward EntrateUscite(playerid);
public EntrateUscite(playerid)
{
if(PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pLeader] == 1 && PlayerInfo[playerid][pLeader] == 2)
{
if(IsPlayerInRangeOfPoint(5.0,playerid,-1979.2408,430.9018,25.4377))
{
TextDrawSetString(Textdrawtutorial, "Premi ~y~Y~w~ per entrare");
TextDrawShowForPlayer(playerid, Textdrawtutorial);
}
else if(IsPlayerInRangeOfPoint(5.0,playerid,-2021.4196,406.0409,2.8828))
{
TextDrawSetString(Textdrawtutorial, "Premi ~y~Y~w~ per uscire");
TextDrawShowForPlayer(playerid, Textdrawtutorial);
}
}
return 1;
}
public OnPlayerConnect(playerid) //This is only a part of OnPlayerConnect.
{
SetTimerEx("EntrateUscite", 500, true, "i", playerid);