Taking Over Zones
#2

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/gz"true) == 0)
    {
        new 
Float:Pos[3];
        
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
        if(
Pos[0] > 2216.207 && Pos[0] < 2623.11 && Pos[1] > 2216.207 && Pos[1] < -1456.841)    
        {
            
SendClientMessage(playerid0xFFFF00FF,"Wait 60 seconds here for dominate.");
            
SetTimerEx("Check"600000false"i"playerid);
        }
        return 
1;
    }
    return 
0;
}

forward Check(playerid);

public 
Check(playerid)
{
    new 
Float:Pos[3];
    
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
    if(
Pos[0] > 2216.207 && Pos[0] < 2623.11 && Pos[1] > 2216.207 && Pos[1] < -1456.841)    
    {
        
SendClientMessage(playerid0xFFFF00FF,"GangZone dominated.");
        
// FUNCTIONS ..
    
}
    else { 
SendClientMessage(playerid0xFFFF00FF,"You aren't in the the gangzone"); }
    return 
1;

https://sampwiki.blast.hk/wiki/Areacheck
Reply


Messages In This Thread
Taking Over Zones - by muhib777 - 03.07.2011, 12:36
Re: Taking Over Zones - by Shadoww5 - 03.07.2011, 13:00
Re: Taking Over Zones - by muhib777 - 03.07.2011, 13:38
Re: Taking Over Zones - by =WoR=Varth - 04.07.2011, 00:16

Forum Jump:


Users browsing this thread: 1 Guest(s)