Giving weapon
#1

<Fixed>
Reply
#2

https://sampwiki.blast.hk/wiki/Tutorial_of_strtok

https://sampwiki.blast.hk/wiki/Tutorial_Dcmd_/_SScanf

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

<fixed>
Reply
#4

Quote:
Originally Posted by Kingunit
Посмотреть сообщение
When the player is going to the location he don't recieve the weapon
As far as I can see (with the three commands) he needs to type /joinlms to join the event, it doesnt matter if he goes there or not

Quote:
Originally Posted by Kingunit
Посмотреть сообщение
Also when he killed the player he won't recieve the amount of cash, just $0.
For sure, you never change WeaponID or RewardAmout which are both 0 after creation

pawn Код:
new
    WeaponID,
    RewardAmount;

g_EventWeapon = WeaponID;
g_EventReward = RewardAmount;
Also you should add a check in /createlms if the event is already opend
Reply
#5

<fixed>
Reply
#6

What he means is, when he types /createlms the variables aren't setting corrently, even though he has assigned values to them.
Reply
#7

Bump
Reply
#8

pawn Код:
new
    Float:g_EventPosition[4],
    g_EventWeapon = 9,//Change this value
    g_EventReward = 20000,//This too
    g_EventPlayers = 0,
    pInEvent[MAX_PLAYERS] = 0,
    g_EventOpen = 0;
Reply
#9

Replacing those g_EventWeapon didn't worked. Can someone help me? If needed via PM. Probably I need professional help.
Reply
#10

Someone? I tried alot but nothing worked ...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)