SA-MP Forums Archive
xp script - 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)
+--- Thread: xp script (/showthread.php?tid=384831)



xp script - Er@x3r - 13.10.2012

who know a xp script?when i shot player every shot is +15 xp and you have a xp bar and when you have levelup you can upgrade your weapon skill or you can upgrade the dmg (or headshot:30 xp and the other 15 xp)


Re: xp script - gtakillerIV - 13.10.2012

Ah, XP = Score?

Or you want to add experience points?

If yes then that will take you some time and I don't think someone will do that for you, you better learn the basics of scripting before hitting and creating the big ideas


Re: xp script - Er@x3r - 13.10.2012

i just asking


Re: xp script - Er@x3r - 13.10.2012

i don't want to rob the other's time.I don't want to make someone me the script....


Re: xp script - T-Raw - 13.10.2012

first u need create a save spot for the weaponskills,

then get, here is an example

OnPlayerShootPlayer
{
if(GetPlayerWeapon(Shooter) == 21)
{
SetPlayerWeaponSkill(Shooter, WEAPONSKILL_PISTOL, PlayerInfo[playerid][pWSkill] =+ 15//u need ur own player save stuff here);
}
return 1;
}


Re: xp script - Er@x3r - 13.10.2012

thanks man i give you +rep