One cmd for two checkpoints
#1

this script is not right
I just show you the important things in script
Код:
new weapondealer; //variable, could be helpful for this script
    if(weapondealer == 0) //could be helpful for this script
    weapondealer   = 0; //could be helpful for this script

	if(!strcmp("/buyweapons1", cmdtext,true))
    {
        if(!IsPlayerInRangeOfPoint(playerid, 2.0, 2817.7190,-1168.5554,1025.5778))return    SendClientMessage(playerid, 0xFF9900AA,"You are not in /buyweapons1 checkpoint.");
        ShowMenuForPlayer(weaponmenu,playerid);
        return 1;
        }
    

if(!strcmp("/buyweapons2", cmdtext,true))
    {
     if(!IsPlayerInRangeOfPoint(playerid, 2.0, 2450.6052,-1694.2794,1013.5152))return SendClientMessage(playerid, 0xFF9900AA,"You are not in /buyweapons2 checkpoint.");
        ShowMenuForPlayer(weaponmenu,playerid);
        return 1;
        }
How to make from this two scripts just one script ( /buyweapons)?
Reply


Messages In This Thread
One cmd for two checkpoints - by nejc001 - 19.09.2010, 18:05
Re: One cmd for two checkpoints - by Vince - 19.09.2010, 18:11
Re: One cmd for two checkpoints - by nejc001 - 19.09.2010, 18:15
Re: One cmd for two checkpoints - by Vince - 19.09.2010, 18:24

Forum Jump:


Users browsing this thread: 1 Guest(s)