lil question
#2

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
IsPlayerInArea(playerid/*MIN X*//*MIN Y*//*MAX X*//*MAX Y*/) && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid0xFF0000FF"You can't use any command here."); // CHANGE IsPlayerAdmin BY THE ADMIN VARIABLE
    // COMMANDS ..
    
return 0;
}

stock IsPlayerInArea(playeridFloat:XminFloat:YminFloat:XmaxFloat:Ymax)
{
    new 
Float:xFloat:yFloat:z;
    
GetPlayerPos(playeridxyz);
    if(
<= Xmin && <= Ymin && >= Xmax && >= Ymax) return 1;
    return 
0;

Reply


Messages In This Thread
lil question - by tanush - 23.07.2011, 22:05
Re: lil question - by Shadoww5 - 23.07.2011, 22:40
Re: lil question - by tanush - 24.07.2011, 17:34
Re: lil question - by iPLEOMAX - 24.07.2011, 17:38
Re: lil question - by tanush - 24.07.2011, 17:41
Re: lil question - by iPLEOMAX - 24.07.2011, 17:43
Re: lil question - by tanush - 31.07.2011, 20:32
Re: lil question - by Kush - 31.07.2011, 20:37
Re: lil question - by LetsOWN[PL] - 31.07.2011, 20:43

Forum Jump:


Users browsing this thread: 1 Guest(s)