drop points
-
is there a script that allows players to drop points
-
Sprully You mean drop the points to the ground, or give points to another player.
-
Kalitos either is fine just a way to share my own points with others
-
#include common_scripts\utility; #include maps\mp\zombies\_zm; #include maps\mp\zombies\_zm_weapons; #include maps\mp\zombies\_zm_utility; #include maps\mp\gametypes_zm\_hud_util; #include maps\mp\gametypes_zm\_hud_message; #include maps\mp\_utility; #include common_scripts\utility; init() { level thread onsayPlayer(); } onsayPlayer() { level endon("game_ended"); for(;;) { level waittill( "say", message, player ); sayText = strtok(tolower(message), " "); if(sayText[0]==".send" || sayText[0]=="/.send") //GivePoints { if(sayText.size>1) { for( i = 0; i < level.players.size; i++ ) { if( isSubStr( tolower( getPlayerName( level.players[ i ] )), tolower(sayText[ 1 ] ) )) { value = int( sayText[ ( sayText.size - 1 ) ] ); if( value < 0 ) value = ( value * -1 ); player give_points( level.players[ i ], int( value )); } } }else { player iPrintLn("Use ^2.send ^1name ^2amount"); } } } } give_points( player, var ) { if( !isDefined( self.giving_points ) ) { self.giving_points = true; if ( player.score == 1000000 ) self iPrintLn( getPlayerName( player ) + " already has ^51000000 ^7points" ); else if( self.score >= var ) { self maps/mp/zombies/_zm_score::minus_to_player_score( var, 1 ); self iPrintLn( "^1Gave ^7" + getPlayerName( player ) + " ^1" + var + " ^7points" ); player maps/mp/zombies/_zm_score::add_to_player_score( var, 1 ); player iPrintLn( "^2" + getPlayerName( self ) + " ^7gave you ^2" + var + " ^7points" ); } else self iPrintLn( "^1You don't have enough points for that" ); wait 1; self.giving_points = undefined; } } getPlayerName( player ) { playerName = getSubStr( player.name, 0, player.name.size ); for( i = 0; i < playerName.size; i++ ) { if( playerName[ i ] == "]" ) break; } if( playerName.size != i ) playerName = getSubStr( playerName, i + 1, playerName.size ); return playerName; } -
thank you for sharing im testing now

-
Which comands i need to send money to my friend??
-
#include common_scripts\utility; #include maps\mp\zombies\_zm; #include maps\mp\zombies\_zm_weapons; #include maps\mp\zombies\_zm_utility; #include maps\mp\gametypes_zm\_hud_util; #include maps\mp\gametypes_zm\_hud_message; #include maps\mp\_utility; #include common_scripts\utility; init() { level thread onsayPlayer(); } onsayPlayer() { level endon("game_ended"); for(;;) { level waittill( "say", message, player ); sayText = strtok(tolower(message), " "); if(sayText[0]==".send" || sayText[0]=="/.send") //GivePoints { if(sayText.size>1) { for( i = 0; i < level.players.size; i++ ) { if( isSubStr( tolower( getPlayerName( level.players[ i ] )), tolower(sayText[ 1 ] ) )) { value = int( sayText[ ( sayText.size - 1 ) ] ); if( value < 0 ) value = ( value * -1 ); player give_points( level.players[ i ], int( value )); } } }else { player iPrintLn("Use ^2.send ^1name ^2amount"); } } } } give_points( player, var ) { if( !isDefined( self.giving_points ) ) { self.giving_points = true; if ( player.score == 1000000 ) self iPrintLn( getPlayerName( player ) + " already has ^51000000 ^7points" ); else if( self.score >= var ) { self maps/mp/zombies/_zm_score::minus_to_player_score( var, 1 ); self iPrintLn( "^1Gave ^7" + getPlayerName( player ) + " ^1" + var + " ^7points" ); player maps/mp/zombies/_zm_score::add_to_player_score( var, 1 ); player iPrintLn( "^2" + getPlayerName( self ) + " ^7gave you ^2" + var + " ^7points" ); } else self iPrintLn( "^1You don't have enough points for that" ); wait 1; self.giving_points = undefined; } } getPlayerName( player ) { playerName = getSubStr( player.name, 0, player.name.size ); for( i = 0; i < playerName.size; i++ ) { if( playerName[ i ] == "]" ) break; } if( playerName.size != i ) playerName = getSubStr( playerName, i + 1, playerName.size ); return playerName; }Kalitos Do we have to type the entire name?
-
Kalitos Do we have to type the entire name?
@Arlene-Excalibur No, but you must write at least the first 4 or 5 letters. Sometimes you may have to write the whole name
-
Danielow In the example, the command would be ".send name points"
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login