Author Topic: [HELP] How to disable weapons in bank  (Read 5172 times)

0 Members and 1 Guest are viewing this topic.

Offline rathore

  • Street Thug
  • *
  • Posts: 42
  • I am a scripter and still trying to be best
    • View Profile
    • Ultimate gamier
[HELP] How to disable weapons in bank
« on: March 13, 2014, 11:10:08 pm »
I want to disable weapons in bank like sky-city server how to do it please help me
« Last Edit: March 13, 2014, 11:18:29 pm by rathore »



Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: [HELP] How to disable weapons in bank
« Reply #1 on: March 13, 2014, 11:33:29 pm »
[pawn]SetTimer("CheckBank", 1000, 1);[/pawn]

Timer & Public Just Add Them!

[pawn]forward CheckBank();
public CheckBank() {
for(new i = 0; i < MAX_PLAYERS; i++) {
if(RobPickup == 1) {
if(GetPlayerLocation(i),"Bank-Little-Havana-Vice-City-Mainland",true) == 0) {
GameTextForPlayer(i," Disabled Your Weapons");
SetPlayerWeapon(i,0,0);
SendClientMessage(i,COLOR_GREEN,"Weapons Diabled");
}
}
}
return 1;
}[/pawn]
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline rathore

  • Street Thug
  • *
  • Posts: 42
  • I am a scripter and still trying to be best
    • View Profile
    • Ultimate gamier
Re: [HELP] How to disable weapons in bank
« Reply #2 on: March 13, 2014, 11:51:39 pm »
[pawn]D:\GTAVIC~1\GAMEMO~1\GUPS11~1.PWN(239) : error 017: undefined symbol "RobPickup"
D:\GTAVIC~1\GAMEMO~1\GUPS11~1.PWN(239) : warning 215: expression has no effect
D:\GTAVIC~1\GAMEMO~1\GUPS11~1.PWN(239) : error 001: expected token: ";", but found "]"
D:\GTAVIC~1\GAMEMO~1\GUPS11~1.PWN(239) : error 029: invalid expression, assumed zero
D:\GTAVIC~1\GAMEMO~1\GUPS11~1.PWN(239) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.0.3367         Copyright (c) 1997-2005, ITB CompuPhase


4 Errors.[/pawn]
« Last Edit: March 13, 2014, 11:58:03 pm by rathore »



Offline rathore

  • Street Thug
  • *
  • Posts: 42
  • I am a scripter and still trying to be best
    • View Profile
    • Ultimate gamier
Re: [HELP] How to disable weapons in bank
« Reply #3 on: March 14, 2014, 12:11:34 am »
[pawn]D:\GTAVIC~1\GAMEMO~1\GUPS11~1.PWN(239) : error 017: undefined symbol "RobPickup"
D:\GTAVIC~1\GAMEMO~1\GUPS11~1.PWN(239) : warning 215: expression has no effect
D:\GTAVIC~1\GAMEMO~1\GUPS11~1.PWN(239) : error 001: expected token: ";", but found "]"
D:\GTAVIC~1\GAMEMO~1\GUPS11~1.PWN(239) : error 029: invalid expression, assumed zero
D:\GTAVIC~1\GAMEMO~1\GUPS11~1.PWN(239) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.0.3367         Copyright (c) 1997-2005, ITB CompuPhase


4 Errors.[/pawn]

i changed to this then fixed removed robbank and added strcmp :)

[pawn]forward CheckBank();
public CheckBank() {
for(new i = 0; i < MAX_PLAYERS; i++) {
if(strcmp(GetPlayerLocation(i),"Bank-Little-Havana-Vice-City-Mainland", true) == 0){
GameTextForPlayer(i," Disabled Your Weapons");
SetPlayerWeapon(i,0,0);
SendClientMessage(i,COLOR_GREEN,"Weapons Diabled");
}
}
return 1;
}[/pawn]
« Last Edit: March 14, 2014, 12:16:16 am by rathore »



Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: [HELP] How to disable weapons in bank
« Reply #4 on: March 14, 2014, 12:12:56 am »
[pawn]D:\GTAVIC~1\GAMEMO~1\GUPS11~1.PWN(239) : error 017: undefined symbol "RobPickup"
D:\GTAVIC~1\GAMEMO~1\GUPS11~1.PWN(239) : warning 215: expression has no effect
D:\GTAVIC~1\GAMEMO~1\GUPS11~1.PWN(239) : error 001: expected token: ";", but found "]"
D:\GTAVIC~1\GAMEMO~1\GUPS11~1.PWN(239) : error 029: invalid expression, assumed zero
D:\GTAVIC~1\GAMEMO~1\GUPS11~1.PWN(239) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.0.3367         Copyright (c) 1997-2005, ITB CompuPhase


4 Errors.[/pawn]

i changed to this then fixed removed robbank and added strcmp :)

[pawn]forward CheckBank();
public CheckBank() {
for(new i = 0; i < MAX_PLAYERS; i++) {
if(strcmp(GetPlayerLocation(i),"Bank-Little-Havana-Vice-City-Mainland", true) == 1){
GameTextForPlayer(i," Disabled Your Weapons");
SetPlayerWeapon(i,0,0);
SendClientMessage(i,COLOR_GREEN,"Weapons Diabled");
}
}
return 1;
}[/pawn]

Well DOne!
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: [HELP] How to disable weapons in bank
« Reply #5 on: March 14, 2014, 12:13:11 am »
So It Works In banks?
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline rathore

  • Street Thug
  • *
  • Posts: 42
  • I am a scripter and still trying to be best
    • View Profile
    • Ultimate gamier
Re: [HELP] How to disable weapons in bank
« Reply #6 on: March 14, 2014, 12:19:09 am »
this cmd removes waepons and big prob it spamming chat



Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: [HELP] How to disable weapons in bank
« Reply #7 on: March 14, 2014, 01:02:29 am »
To Fix It...

Remove Sendclientmessage(i

then it will not spam
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline [NYB]Gino

  • Street Thug
  • *
  • Posts: 15
    • View Profile
Reply
« Reply #8 on: May 20, 2014, 02:12:12 pm »
In My Server :
C:\Grand Theft Auto Vice City\gamemodes\GC.pwn(203) : error 017: undefined symbol "GetPlayerLocation"

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: [HELP] How to disable weapons in bank
« Reply #9 on: May 20, 2014, 04:14:13 pm »
Copy it from GUPS
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(