Hello,
How do i make a script file that does this: when i made a skin with a name, i choose that skin i select the MP44 (german then) and the script gives him instead of a MP44 a FG42, but when i selects the MP40 he gets the MP40, same with rifle, sniper etc. just the MP44 changes into a FG42, but when i select a regular skin, the skin gets the MP44, there was something like this before, can some1 help me on this one?
thanks
Weapon given to specified player....
Moderator: Moderators
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
Just an untested scanner:
...but this is a good start I think.
Code: Select all
player_scanner:
while (1) {
for(local.i = 1; local.i <= $player.size; local.i++) {
local.player = $player[local.i]
if(isAlive local.player) {
if(local.player.model == "some/scpecific/model.tik") {
// Swap weapons
// Search the forum
// on how to do it.
}
}
waitframe
}
wait 1
}
end-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
Yeah I guess buying SH would be the fool proof way to do it. LOL
But seriously: look around the forum, there are threads that deal with giving and taking weapons...
Also this may help: http://www.modtheater.com/forum/showthread.php?t=13801
But seriously: look around the forum, there are threads that deal with giving and taking weapons...
Also this may help: http://www.modtheater.com/forum/showthread.php?t=13801
