/sharescore
#4

You mean this ?

Код:
COMMAND:sharescore(playerid, params[])
{
	new pid, score;
	if(sscanf(params, "us", pid, score)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /sharescore <playerid> <score>");
	// if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "This command is only for admins.");
	new string[128], pName[MAX_PLAYER_NAME], sName[MAX_PLAYER_NAME];
	GetPlayerName(playerid, pName, sizeof(pName));
	GetPlayerName(pID, sName, sizeof(sName));
	format(string, sizeof(string), "Player %s has shared %d XP to Player %s", pName, score, sName);
	SendClientMessageToAll(/*your color*/ -1, string);
	SetPVarInt(pID, "XP", GetPVarInt(pID, "XP") + score);
}
Reply


Messages In This Thread
/sharescore - by Blackazur - 30.10.2012, 20:41
AW: /sharescore - by Skimmer - 30.10.2012, 20:44
AW: /sharescore - by Blackazur - 30.10.2012, 20:45
AW: /sharescore - by Skimmer - 30.10.2012, 21:00
Re: /sharescore - by RedFusion - 30.10.2012, 22:34
AW: /sharescore - by Blackazur - 31.10.2012, 12:13

Forum Jump:


Users browsing this thread: 1 Guest(s)