[HELP] Block transmission of Money
#1

How to block sending money to a player who is in an arena x1?

Command x1:
Code:
 	if (strcmp(cmdtext,"/x1", true)==0)
	{
    if(GetPlayerMoney(playerid) < 200) return SendClientMessage(playerid, COLOR_RED, "You need $ 200 to use the teleportation!");
	SetPlayerInterior(playerid,0);  
	SetPlayerPos(playerid,1890.046,-1316.395,49.069);
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    format(string, sizeof(string), "*** %s was to o x1 (/x1)", pname);
    SendClientMessageToAll(COLOR_YELLOW, string);
    GivePlayerWeapon(playerid,4,0);
    GivePlayerWeapon(playerid,26,1000);
    GivePlayerWeapon(playerid,31,1000);
    GivePlayerWeapon(playerid,24,1000);
    GivePlayerWeapon(playerid,32,1000);
	return 1;
	}
command to give money:
Code:
if(strcmp(cmd, "/transfer", true) == 0) {
	  new tmp[256];
		tmp = strtok(cmdtext, idx);

		if(!strlen(tmp)) {
			SendClientMessage(playerid, COLOR_WHITE, "TYPE: /transfer [id] [amount]");
			return 1;
		}
		giveplayerid = strval(tmp);

		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp)) {
			SendClientMessage(playerid, COLOR_WHITE, "TYPE: /transfer [id] [amount]");
			return 1;
		}
 		moneys = strval(tmp);
Reply


Messages In This Thread
[HELP] Block transmission of Money - by J. - 08.04.2010, 01:50
Re: [HELP] Block transmission of Money - by cessil - 08.04.2010, 01:59
Re: [HELP] Block transmission of Money - by cloud9 - 08.04.2010, 02:44
Re: [HELP] Block transmission of Money - by J. - 08.04.2010, 03:49
Re: [HELP] Block transmission of Money - by cloud9 - 08.04.2010, 04:19

Forum Jump:


Users browsing this thread: 1 Guest(s)