Posts: 111
Threads: 10
Joined: Jun 2011
Hello, I saw this filterscript :
https://sampforum.blast.hk/showthread.php?tid=44126
I just have a question : How can I restrict bombing for admins ? I want that if the player is not admin, he can't use this function.
Thanks =)
Posts: 111
Threads: 10
Joined: Jun 2011
I tryed that, I have some compilation errors. Does it works for you ? Maybe, I didi't do it very well.
Can you try it please ? Thanks =)
Posts: 781
Threads: 12
Joined: May 2011
Reputation:
0
How about posting what errors your received.
Posts: 111
Threads: 10
Joined: Jun 2011
Код:
Current directory: C:\Documents and Settings\Ludovic\Bureau\GTA\samp03csvr_R2-2_win32\pawno
Bombardier.pwn(38) : error 010: invalid function or declaration
Bombardier.pwn(390) : warning 213: tag mismatch
Bombardier.pwn(454) : error 054: unmatched closing brace ("}")
Bombardier.pwn(455) : error 010: invalid function or declaration
Bombardier.pwn(459) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
================ READY ================
Posts: 111
Threads: 10
Joined: Jun 2011
Thanks, it works. But, can I hide the textbox (where I choose the bomb type, sorry for my bad english x)) ?
Thanks again =)
Posts: 111
Threads: 10
Joined: Jun 2011
This means that if the player i not admin, the returned value will be 1 (true), so he will be able to drop bombs I think ^^ I will try with return 0
I'll tell you how it works !
There is a problem, with 1 or 0
Код:
@Bombardier.pwn(451) : warning 209: function "IsPlayerAllowedToDropBomb" should return a value
Posts: 111
Threads: 10
Joined: Jun 2011
It works with
Код:
return IsPlayerAdmin(playerid);
But it doesn't hide the Textdraw when he player is not an admin. Do you know how to do it ?
Thanks =)