27.03.2009, 20:46
Hi, on my server we do not allow guns, how can i block all the amunation interiours wirthout blocking all interiours or by putting objects there, how do i do this
Thanks
Cameron
Thanks
Cameron
if(PlayerToPoint(10.0,i,checkpoint cords) == 1)
{
// Do whatever
SendClientMessage(i,COLOUR_YELLOW,"Closed");
}
Originally Posted by WeeDarr
pawn Код:
WeeDarr |
Originally Posted by CAMERON_BANFIELD
Quote:
|
if(PlayerToPoint(10.0,i,checkpoint cords) == 1)
{
// Do whatever
SendClientMessage(i,COLOUR_YELLOW,"Closed");
}
else if(PlayerToPoint(10.0,i,checkpoint cords) == 1)
{
// Do whatever
SendClientMessage(i,COLOUR_YELLOW,"Closed");
}
Originally Posted by WeeDarr
pawn Код:
WeeDarr |
stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
if(IsPlayerConnected(playerid))
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
}
return 0;
}