08.05.2014, 05:04 
	(
 Последний раз редактировалось Stanford; 08.05.2014 в 11:41.
)
	
	pawn Код:
// remove those if you've them in the top of your gamemode / filterscript or code.
#include <zcmd>
#include <sscanf2>
CMD:rob(playerid, params[])
{
new giveplayerid, string[128];
if(sscanf(params,"u", giveplayerid) return SendClientMessage(playerid, -1, "/rob [playerid]");
if(giveplayerid == INVALID_PLAYERID) return SendClientMessage(playerid, -1, "That player isn't even online or available.");
if(GetPlayerMoney(giveplayerid) >= 1 && GetPlayerMoney(giveplayerid) != 0) {
moneyrobbed = GetPlayerMoney(giveplayerid);
GivePlayerMoney(playerid, moneyrobbed); // The robbed money was given successfully (edit the code if you dont want that you lose all the money.
format(string,sizeof(string),"You've robbed (%d) successfully from that player, keep up the good work.",robbedmoney);
SendClientMessage(playerid, -1, string);
return 1;
}
i hope that I helped you, it was just a random code.. not tested.


