Quote:
Originally Posted by fowlplay4
A lot of servers use a script like this in Control-NPC.
In Control-NPC:
PHP Code:
function onActionPlayerOnline() {
// Array of weapons to add to the player.
temp.weps = {
"-System", "OtherWeapon", "Example"
};
// Loops through each weapon in the array and adds it to the player.
for (temp.wep: temp.weps) {
player.addweapon(temp.wep);
}
}
|
Just tried
PHP Code:
function onActionPlayerOnline() {
// Array of weapons to add to the player.
temp.weps = {
"testgui", "Tailor"
};
// Loops through each weapon in the array and adds it to the player.
for (temp.wep: temp.weps) {
player.addweapon(temp.wep);
}
}
... Played as a Guest on my server and spawned with no weapons at all...