SA-MP Forums Archive
{help}DONATOR AMMO - 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: {help}DONATOR AMMO (/showthread.php?tid=140190)



{help}DONATOR AMMO - alenblue - 07.04.2010

Hmm, guys can you tell me how can i make Donator Ammunation.
Iґm new at this, i tried many ways to make Donator Ammunation, but it doesnґt work.
So please can you help me?
BTW: Iґam from Croatia, so i donґt speak English Well
Can someone make a TUT, or post code here how can i make it.
Please.


Re: {help}DONATOR AMMO - aircombat - 07.04.2010

use the base vip system in my signature , and use the function :
Код:
if(Pinfo[playerid][Vip_Level] >= 1)
{
//ur code
return 1;
}



Re: {help}DONATOR AMMO - alenblue - 07.04.2010

Thanks i will try it right now


Re: {help}DONATOR AMMO - alenblue - 07.04.2010

sry for DP.
I have a problem with this V.I.P.
He wont save.
i put myself to be VIP 3 level
and after i relog it says that I am VIP 0 level
HElp?


Re: {help}DONATOR AMMO - aircombat - 07.04.2010

idk, it works fine with me , did u put scriptfiles in right place?


Re: {help}DONATOR AMMO - alenblue - 07.04.2010

yes


Re: {help}DONATOR AMMO - aircombat - 07.04.2010

check the folder cause its Case Sensitive it should be "VIP" not "vip"


Re: {help}DONATOR AMMO - alenblue - 07.04.2010

it was "vip" i changed it to "VIP" and it works
i have an another question
How can i make command for VIP
like this that a VIP level 1 comes to Building and he can only enter, only VIP level 1-3, and a player who is not VIP he cannot enter
can you make a command?
and where should i put this in GM or in FS
Thanks


Re: {help}DONATOR AMMO - aircombat - 07.04.2010

put that under OnPlayerCommandText :

Код:
if(!strcmp(cmdtext, "/ammunation", true, 11))
{
if(Pinfo[playerid][Vip_Level] >= 1)
{
SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625);
return 1;
}
else { SendClientMessage(playerid,0xAA3333AA,"Only Vip Allowed"); }
return 1;
}



Re: {help}DONATOR AMMO - alenblue - 07.04.2010

I put that and errors came
Код:
C:\Users\Alen\Desktop\other\RG-RP by RG Djuro(Nidzola)\gamemodes\lsrp.pwn(10021) : warning 217: loose indentation
C:\Users\Alen\Desktop\other\RG-RP by RG Djuro(Nidzola)\gamemodes\lsrp.pwn(10023) : error 017: undefined symbol "Pinfo"
C:\Users\Alen\Desktop\other\RG-RP by RG Djuro(Nidzola)\gamemodes\lsrp.pwn(10023) : warning 215: expression has no effect
C:\Users\Alen\Desktop\other\RG-RP by RG Djuro(Nidzola)\gamemodes\lsrp.pwn(10023) : error 001: expected token: ";", but found "]"
C:\Users\Alen\Desktop\other\RG-RP by RG Djuro(Nidzola)\gamemodes\lsrp.pwn(10023) : error 029: invalid expression, assumed zero
C:\Users\Alen\Desktop\other\RG-RP by RG Djuro(Nidzola)\gamemodes\lsrp.pwn(10023) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors
and here are the lines
Код:
10021 if(!strcmp(cmdtext, "/ammunation", true, 11))
10022{
10023if(Pinfo[playerid][Vip_Level] >= 1)
10024{
10025SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625);
10026return 1;
10027}
10028else { SendClientMessage(playerid,0xAA3333AA,"Samo VIP!!"); }
10029return 1;
10030}



Re: {help}DONATOR AMMO - aircombat - 07.04.2010

u should add that command to the filterscript "Base Vip System"


Re: {help}DONATOR AMMO - alenblue - 07.04.2010

i put it in the FS and it came up 5 more errors
Код:
C:\Users\Alen\Desktop\other\RG-RP by RG Djuro(Nidzola)\filterscripts\VIP.pwn(344) : error 010: invalid function or declaration
C:\Users\Alen\Desktop\other\RG-RP by RG Djuro(Nidzola)\filterscripts\VIP.pwn(346) : error 010: invalid function or declaration
C:\Users\Alen\Desktop\other\RG-RP by RG Djuro(Nidzola)\filterscripts\VIP.pwn(349) : error 010: invalid function or declaration
C:\Users\Alen\Desktop\other\RG-RP by RG Djuro(Nidzola)\filterscripts\VIP.pwn(351) : error 010: invalid function or declaration
C:\Users\Alen\Desktop\other\RG-RP by RG Djuro(Nidzola)\filterscripts\VIP.pwn(352) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.



Re: {help}DONATOR AMMO - aircombat - 07.04.2010

Lines or post the whole FS


Re: {help}DONATOR AMMO - alenblue - 07.04.2010

Код:
//---------------------donator ammo------------------
344if(!strcmp(cmdtext, "/ammunation", true, 11))
345	{
346	if(Pinfo[playerid][Vip_Level] >= 1)
347	{
348	SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625);
349	return 1;
350	}
351	else { SendClientMessage(playerid,0xAA3333AA,"Only Vip Allowed"); }
352	return 1;
353	}
	/code]



Re: {help}DONATOR AMMO - alenblue - 07.04.2010

is anyone here who can tell me how to solve this errors


Re: {help}DONATOR AMMO - aircombat - 07.04.2010

k i made a special one for u , here is the vip system with the command :

V
V
V
V
V
My Attachments
V
V
V


Re: {help}DONATOR AMMO - alenblue - 08.04.2010

TNX it Work
TNX for help



Re: {help}DONATOR AMMO - aircombat - 08.04.2010

Quote:
Originally Posted by alenblue
TNX it Work
TNX for help
u r welcome anytime