25.10.2012, 09:03
Do this
Then do this
pawn Code:
stock IsAt247(playerid)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 100.0, -30.875, -88.9609, 1004.53))
{
return true;
}
else if(IsPlayerInRangeOfPoint(playerid, 10.0, -2654.2300,1526.3693,907.1797))
{
return true;
}
else if(IsPlayerInRangeOfPoint(playerid, 50.0, 890.66, 1429.08, -82.34))
{
return true;
}
else if(IsPlayerInRangeOfPoint(playerid, 50.0, -29.2035, -185.1285, 1003.5469))
{
return true;
}
else if(IsPlayerInRangeOfPoint(playerid, 50.0, 2.0450,-29.0116,1003.5494))
{
return true;
}
else if(IsPlayerInRangeOfPoint(playerid, 50.0, -28.1463,-89.9533,1003.5469))
{
return true;
}
else if(IsPlayerInRangeOfPoint(playerid, 50.0, -22.0699,-138.6297,1003.5469))
{
return true;
}
else if(IsPlayerInRangeOfPoint(playerid, 50.0, -22.0699,-138.6297,1003.5469))
{
return true;
}
else if(IsPlayerInRangeOfPoint(playerid, 50.0, -30.9772,-29.0228,1003.5573))
{
return true;
}
else if(IsPlayerInRangeOfPoint(playerid, 50.0, -23.4488,-55.6319,1003.5469))
{
return true;
}
else if(IsPlayerInRangeOfPoint(playerid, 500, -1044.0193,1342.7756,1306.9235)) // VIP Lounge
{
return true;
}
}
return 0;
}
stock IsAtElecShop(playerid)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 100.0, 1007.2590,52.3136,55.3221))
{
return true;
}
}
return 0;
}
pawn Code:
pawn Code:
if(IsAt247(playerid)==1 || IsAtElecShop(playerid)==1 || IsAtHardShop(playerid)==1)
{
return 1;
}else return SendClientMessageEx(playerid, COLOR_GRAD2, " You are not in a Store!");