how to disarm specific weapon after DM ?
#1

how can disarm some on after death match ?

pawn Код:
if(!strcmp(cmdtext, "/leavedm", true) || !strcmp(cmdtext, "/ldm", true))
    {
        if(DMZone[playerid] == 0) return SendClientMessage(playerid,COLOR_RED, "ERROR: You Not In DM !");
        DMZone[playerid] = 0;
        SetPlayerWorldBounds(playerid, 2839.872, 2588.885, -2345.083, -2581.947 );
        SetPlayerPos(playerid, 2495.5647,-1700.7120,1014.7422 );
        return 1;
    }
Reply
#2

https://sampwiki.blast.hk/wiki/ResetPlayerWeapons
Reply
#3

that is to disarm akiller i need to disarm after Leaving DM
Reply
#4

Quote:
Originally Posted by arafa001
Посмотреть сообщение
that is to disarm akiller i need to disarm after Leaving DM
You can just change 'killerid' in 'playerid', or in 'TargetID', etc etc
Reply
#5

I misread the thread, it was quite misleading. To get rid of a specific weapon you can, give the player a weapon in the same slot as your current weapon that you are trying to get rid of.
Reply
#6

you mean like this?

pawn Код:
if(!strcmp(cmdtext, "/leavedm", true) || !strcmp(cmdtext, "/ldm", true))
    {
        if(DMZone[playerid] == 0) return SendClientMessage(playerid,COLOR_RED, "ERROR: You Not In DM !");
        DMZone[playerid] = 0;
        SetPlayerWorldBounds(playerid, 2839.872, 2588.885, -2345.083, -2581.947 );
        SetPlayerPos(playerid, 2495.5647,-1700.7120,1014.7422 );
        if(GetPlayerWeapon(playerid) == /* put here the weapon id*/)
        {
        SetPlayerAmmo(playerid, /*weapon id*/, 0);
        }
        return 1;
    }
not tested but it should work
Reply
#7

thanks all for helping

i have alot of DMs with many weapon to use so it will be long to dis arm every weapon alone so i did a reset to all

pawn Код:
if(!strcmp(cmdtext, "/leavedm", true) || !strcmp(cmdtext, "/ldm", true))
    {
        if(DMZone[playerid] = 0) return SendClientMessage(playerid,COLOR_RED, "ERROR: You Not In DM !");
        DMZone[playerid] = 0;
        ResetPlayerWeapons(playerid);
        new r = random(sizeof(spawns));
        SetPlayerPos(playerid, spawns[r][ex], spawns[r][ey], spawns[r][ez]);
        SetPlayerInterior(playerid, spawns[r][interior]);
        SendClientMessage(playerid, COLOR_WHITE, spawns[r][emsg]);
        SetPlayerWorldBounds(playerid, 99999.0, -99999.0, 99999.0, -99999.0);
        PlayerPlaySound(playerid,SOUND_OFF,2050.1995, 1344.5500, 13.2378);
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)