else if ( strcmp( cmd, "t", true ) == 0 ){
for(i = 0; i < MAX_PLAYERS; i++)
{
new Float:tX,Float:tY,Float:tZ;
GetPlayerPos(playerid,tX,tY,tZ);
if(PlayerToPoint(15.0,i,tX,tY,tZ))
{
new str[ 128 ];
format(str,128, "[%s]Dice:%s.",gPlayers[ playerid ],cmdtext[2]);
SendClientMessage(i,COLOR_YELLOW,str);
}
}
return 1;
}
public 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;
}
agradescan por lo menos los noobs{ (
Abraham_Blanco) && [Professsional-Spawno-Scripts] }