[Help]/enter and /exit command
#4

soo if you want to send a mesasge
pawn Код:
CMD:enter(playerid,params[])
{
    if(IsPlayerInRangeOfPoint(playerid,1,X,Y,Z)
    {
        for(new i=0; i<MAX_PLAYERS; i++)
        {
                GetPlayerPos(playerid,X,Y,Z);
                GetPlayerName(playerid,Nam);
                if(IsPlayerInRangeOfPoint(i, 5.0, X,Y,Z))
                {
                    format(str,sizeof(str),"%s has entered the building",Nam);
                    SendClientMessageToAll(i,-1,str);
                    SetPlayerPos(playerid,X,Y,Z);
                }
         }
    }
    return 1;
}
Reply


Messages In This Thread
[Help]/enter and /exit command - by Tamao_Serizawa - 09.01.2012, 00:32
Re: [Help]/enter and /exit command - by Tanush123 - 09.01.2012, 00:38
Re: [Help]/enter and /exit command - by Tamao_Serizawa - 09.01.2012, 00:44
Re: [Help]/enter and /exit command - by Tanush123 - 09.01.2012, 00:48
Re: [Help]/enter and /exit command - by botak - 25.12.2013, 02:05

Forum Jump:


Users browsing this thread: 2 Guest(s)