Help I don't understand why...
#5

Quote:
Originally Posted by daastle
Посмотреть сообщение
I canґt actually see you defining or doing anything with "wep1, wep2, wep3" , thats why you get the wrong ID I guess.
But why is that other weapons are working and I can use sniper and the rest. Except those that I have mentioned?


Ohh you mean this?
pawn Код:
stock AddToDuel(playerid, Float:X, Float:Y, Float:Z, Float:A, interior, world, wep1, wep2, wep3)
{
    IsPlayerInDM[playerid] = 1;
    KillTimer(DuelTimer[playerid]);
    SetPlayerArmour(playerid, 0);
    SetPVarInt(playerid, "CMDDisabled", 3);
    SetPVarInt(playerid, "CDTick", 0);
    SetPVarInt(playerid, "InDuel", 1);
    SetPVarInt(playerid, "ArmourReport", 1);
    SetPVarInt(playerid, "DInvited", 0);
    SetPlayerPosEx(playerid, X, Y, Z, A, interior, world);
    SetPlayerHealth(playerid, 100);
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid, wep1, 50000);
    GivePlayerWeapon(playerid, wep2, 50000);
    GivePlayerWeapon(playerid, wep3, 50000);
    TogglePlayerControllable(playerid, 0);
    SetCameraBehindPlayer(playerid);
    DuelTimer[playerid] = SetTimerEx("DuelCDUpdate", 1000, 1, "i", playerid);
    return 1;
}
Reply


Messages In This Thread
Help I don't understand why... - by .v - 27.09.2012, 11:25
Re: Help I don't understand why... - by Socan - 27.09.2012, 12:36
Re: Help I don't understand why... - by .v - 27.09.2012, 14:16
Re: Help I don't understand why... - by daastle - 27.09.2012, 14:45
Re: Help I don't understand why... - by .v - 27.09.2012, 14:49

Forum Jump:


Users browsing this thread: 1 Guest(s)