Need help with my Jetpack command.
#9

pawn Код:
CMD:giveweapon(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
        new weapid; new targetidname[MAX_PLAYER_NAME], targetid; new string[256];
    if(!sscanf(params,"ui",targetid, weapid))
        {
        GetPlayerName(targetid,targetidname, sizeof(targetidname));
        format(string,sizeof(string),"An administrator has given a weapon to %s", targetidname);
        SendClientMessageToAll(-1, string);
        GivePlayerWeapon(targetid, weapid, 1); // forgot ammo
        }
        else return SendClientMessage(playerid,-1,"Usage: /giveweapon (ID) (WeapID");
    }
 return 1;
  }
Reply


Messages In This Thread
Need help with my Jetpack command. - by Magic_Time - 27.12.2012, 05:35
Re: Need help with my Jetpack command. - by XtremeR - 27.12.2012, 05:43
Re: Need help with my Jetpack command. - by Magic_Time - 27.12.2012, 05:48
Re: Need help with my Jetpack command. - by zDevon - 27.12.2012, 05:50
Re : Re: Need help with my Jetpack command. - by lelemaster - 27.12.2012, 05:53
Re: Need help with my Jetpack command. - by Magic_Time - 27.12.2012, 05:56
Re : Need help with my Jetpack command. - by lelemaster - 27.12.2012, 05:57
Re: Need help with my Jetpack command. - by Magic_Time - 27.12.2012, 06:01
Re : Re: Need help with my Jetpack command. - by lelemaster - 27.12.2012, 06:01
Re: Need help with my Jetpack command. - by zDevon - 27.12.2012, 06:12

Forum Jump:


Users browsing this thread: 5 Guest(s)