Issue [HELP ASAP]
#2

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(!
strcmp(cmdtext"/aweapons"true))
    {
         if(
IsPlayerInRangeOfPoint(playerid5, -2274.4304,543.1503,35.1740))
          {
            
GivePlayerWeapon(playerid3199999);
            
GivePlayerWeapon(playerid2499999);
            
GivePlayerWeapon(playerid1699999);
            
GivePlayerWeapon(playerid2899999);
            
GivePlayerWeapon(playerid81);
            
SetPlayerArmour(playerid100);
                return 
1;
            }
            else return 
SendClientMessage(playerid0xAFAFAFAA"You must be at Soviet's Weapon Spawn Location to use this command.");
         return 
1;
    }
    return 
0;

When checking is player in point you dont need ( for co-ordinates and then you forgot one ) at the same line
Reply


Messages In This Thread
Issue [HELP ASAP] - by nmader - 30.10.2011, 17:56
Re: Issue [HELP ASAP] - by [MG]Dimi - 30.10.2011, 17:59

Forum Jump:


Users browsing this thread: 2 Guest(s)