VC:MP 0.3 > Snippet Showroom
Disable Weapons/ Restore In bank [Snippet By me ]
m.viber:
--- Quote from: mrockxkingbutt on March 14, 2014, 09:41:02 pm ---Add [pawn]new WasPlayerInBank[MAX_PLAYERS];[/pawn]
Now Add Publics
[pawn]
forward CheckBank();
public CheckBank() {
for(new i = 0; i < MAX_PLAYERS; i++) {
if(WasPlayerInBank == 1) {
if(strcmp(GetPlayerLocation(i),"Bank-Little-Havana-Vice-City-Mainland", true) == 1) {
GameTextForPlayer(i," Restored Your Weapons ");
SetPlayerWeapon(i,19,1000);
SetPlayerWeapon(i,22,1000);
WasPlayerInBank = 0;
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);
WasPlayerInBank = 1;
}
}
}
}
}
return 1;
}[/pawn]
Now Add Timers In OnGameModeInit
[pawn]
SetTimer("CheckBank2", 1000, 1);[/pawn]
Post Comments About It
Credits : All By Me!!
--- End quote ---
Listen I'm new scripter work on my lan server and I put or script in gusp mode and put this script and nothing happen and I put the ----------// after the last script, I must but another ------------// after that scrptnto work?
And I must but all that commands together in the script mode?
Note: u are good scripter
mrockxkingbutt:
Rename CheckBank2 From Timer To CheckBank Or It Will Be Stay Bugged!!
[NYB]Gino:
Help Its Saying In My Server
C:\Grand Theft Auto Vice City\gamemodes\GC.pwn(310) : error 017: undefined symbol "GetPlayerLocation"
C:\Grand Theft Auto Vice City\gamemodes\GC.pwn(316) : error 017: undefined symbol "GetPlayerLocation"
Pawn compiler 3.0.3367 Copyright (c) 1997-2005, ITB CompuPhase
2 Errors.
dynavolt71:
Copy function you need to your script
[NYB]Gino:
im not using GUPS , IM Using OTher Kind Of Script Not SQ , just im using other pawn server.
i dont know how to fix that when i remove getplayerlocation its bug
help me please
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version