SA-MP Forums Archive
Giving weapon - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Giving weapon (/showthread.php?tid=274458)



Giving weapon - Kingunit - 06.08.2011

<Fixed>


Re: Giving weapon - CyNiC - 06.08.2011

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

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

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


Re: Giving weapon - Kingunit - 06.08.2011

<fixed>


AW: Giving weapon - Nero_3D - 06.08.2011

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


Re: AW: Giving weapon - Kingunit - 06.08.2011

<fixed>


Re: Giving weapon - Scarred - 06.08.2011

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


Re: Giving weapon - Kingunit - 06.08.2011

Bump


Re: Giving weapon - iPLEOMAX - 06.08.2011

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;



Re: Giving weapon - Kingunit - 06.08.2011

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


Re: Giving weapon - Kingunit - 06.08.2011

Someone? I tried alot but nothing worked ...