02.01.2011, 01:44
Hello I'm new to Scripting in Pawn/SA-MP Servers.
First Question
Is there a Tutorial for making Shops for Weapons, and other such items?
I want to save guns and there ammo, so right now here is my save file:
and my Pawn Dini saving Code:
The probelm I'm having is, how should I save the ammo, I have weapon saving handled but the Ammo I'm having problems.
If I used GetPlayerWeaponData Wouldn't that cause people to beable to edit the Ammo with a program, like cheat engine?
Second Question - Never mind, Was pointed out to look at Style lists
Is there a Tutorial for making Shops for Weapons, and other such items?
Thanks for reading.
First Question
Is there a Tutorial for making Shops for Weapons, and other such items?
I want to save guns and there ammo, so right now here is my save file:
Код:
Password=192676593 Ip=127.0.0.1 Level=10 Cash=4500 Deaths=0 Bankcash=10000 Score=0 PrimWep=33 SubWep=23 MeleeWep=8 PrimWep_Ammo=200 SubWep_Ammo=200 MeleeWep_Ammo=1
PHP код:
dini_IntSet(playerfile, "PrimWep", GetPVarInt(playerid,"PrimWep"));
dini_IntSet(playerfile, "SubWep", GetPVarInt(playerid,"SubWep"));
dini_IntSet(playerfile, "MeleeWep", GetPVarInt(playerid,"MeleeWep"));
dini_IntSet(playerfile, "PrimWep_Ammo", GetPVarInt(playerid,"PrimWep_Ammo"));
dini_IntSet(playerfile, "SubWep_Ammo", GetPVarInt(playerid,"SubWep_Ammo"));
dini_IntSet(playerfile, "MeleeWep_Ammo", GetPVarInt(playerid,"MeleeWep_Ammo"));
If I used GetPlayerWeaponData Wouldn't that cause people to beable to edit the Ammo with a program, like cheat engine?
Second Question - Never mind, Was pointed out to look at Style lists
Is there a Tutorial for making Shops for Weapons, and other such items?
Thanks for reading.