New Scripter
#1

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:
Код:
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
and my Pawn Dini saving Code:
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")); 
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.
Reply


Messages In This Thread
New Scripter - by ViperSniper - 02.01.2011, 01:44
Re: New Scripter - by Anthonyx3' - 02.01.2011, 02:06
Re: New Scripter - by ViperSniper - 02.01.2011, 02:07
Re: New Scripter - by Anthonyx3' - 02.01.2011, 02:10
Re: New Scripter - by ViperSniper - 02.01.2011, 02:21
Re: New Scripter - by ViperSniper - 02.01.2011, 02:47

Forum Jump:


Users browsing this thread: 4 Guest(s)