Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Silently gives the specified killstreak
- giveKillstreak(playerName, killstreak)
- {
- playerName maps\mp\gametypes\_hardpoints::giveHardpointItem(killstreak);
- }
- // Gives the specified weapon to the player
- giveWeapon(playerName, weaponName)
- {
- playerName giveWeapon(weaponName);
- }
- // Gives unlimited health to the player
- giveGodMode(playerName)
- {
- playerName.maxHealth = 200000;
- while(1)
- {
- if (playerName.health < playerName.maxhealth)
- {
- playerName.health = playerName.maxHealth;
- }
- wait 0.1;
- }
- }
- // Resets score and countdown timer. Brings up the class selection screen
- fastRestart()
- {
- map_restart(false);
- }
- // Exits the match immediately, basically like backing out when you're not host
- killServer()
- {
- exitLevel(false);
- }
- // Sets the stats of the player
- setStatistic(playerName, statistic, amount)
- {
- playerName maps\mp\gametypes\_persistence::statSet(stat, amount);
- }
- // Kills the player with a skull icon
- commitSuicide(playerName)
- {
- playerName suicide();
- }
- // Sets the visibility of the player to others
- setVisibility(playerName, invisible)
- {
- if (invisible)
- {
- playerName hide();
- }
- else
- {
- playerName show();
- }
- }
- // Freezes the controls of the player
- freezePlayer(playerName, frozen)
- {
- playerName freezeControls(frozen);
- }
- // Throws the player out of the lobby
- kickPlayer(playerName)
- {
- kick(playerName getEntityNumber());
- }
- // Prevents the player from joining the lobby again by IP address (?)
- banPlayer(playerName)
- {
- ban(playerName getEntityNumber());
- }
- // Plays the sound when a Claymore detected an enemy and is about to blow up
- playClaymoreTickingSound(playerName)
- {
- playerName playSound("claymore_activated");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement