My /b is Global :S
#4

PHP код:
if(!strcmp(cmdtext"/b"true2))
    {
        if(!
cmdtext[2])return SendClientMessage(playeridCOLOR_GREY"USAGE: /b [OOC CHAT]");
        new 
str[128];
        
GetPlayerName(playerid,strsizeof(str));
        
format(strsizeof(str), "%s ((%s))"strcmdtext[2]);
        
ProxDetector(20.0playeridstr,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY);
        return 
1;
    }
forward ProxDetectorS(Float:radiplayeridtargetid);
public 
ProxDetectorS(Float:radiplayeridtargetid)
{
    if(
IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
        new 
Float:posxFloat:posyFloat:posz;
        new 
Float:oldposxFloat:oldposyFloat:oldposz;
        new 
Float:tempposxFloat:tempposyFloat:tempposz;
        
GetPlayerPos(playeridoldposxoldposyoldposz);
        
GetPlayerPos(targetidposxposyposz);
        
tempposx = (oldposx -posx);
        
tempposy = (oldposy -posy);
        
tempposz = (oldposz -posz);
        if(((
tempposx radi) && (tempposx > -radi)) && ((tempposy radi) && (tempposy > -radi)) && ((tempposz radi) && (tempposz > -radi)))
        {
            return 
1;
        }
    }
    return 
0;

Reply


Messages In This Thread
My /b is Global :S - by Panormitis - 29.09.2011, 19:44
Re: My /b is Global :S - by Riddick94 - 29.09.2011, 19:49
Re: My /b is Global :S - by Kush - 29.09.2011, 20:11
Re: My /b is Global :S - by WoodPecker - 29.09.2011, 20:16
Re: My /b is Global :S - by Kush - 29.09.2011, 20:20
Re: My /b is Global :S - by WoodPecker - 29.09.2011, 20:26

Forum Jump:


Users browsing this thread: 1 Guest(s)