{help}DONATOR AMMO
#1

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.
Reply
#2

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

Thanks i will try it right now
Reply
#4

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?
Reply
#5

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

yes
Reply
#7

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

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
Reply
#9

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;
}
Reply
#10

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}
Reply
#11

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

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.
Reply
#13

Lines or post the whole FS
Reply
#14

Код:
//---------------------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]
Reply
#15

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

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
Reply
#17

TNX it Work
TNX for help
Reply
#18

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


Forum Jump:


Users browsing this thread: 1 Guest(s)