Jump to content

Colinda


Neculai

Recommended Posts

Salut SA-MP ro am revenit cu un mic si f f f simplu fs anume unul care colinzi playerii 

new colinda;
new suma;
new IDC[MAX_PLAYERS];
new IDT;


CMD:acolinda(playerid,params[])
{
	new stringC[128];
	if(sscanf(params, "u", suma)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /acolinda [suma]");
	if(colinda == 0) return SendClientMessage(playerid,-1,"Nimeni nu vrea sa te colinde");
	else
	{
	format(stringC, sizeof(stringC), "a acceptat colinda");
	SendPlayerMessageToPlayer(IDT,playerid,stringC);
	PlayAudioStreamForPlayer(IDT,"http://k003.kiwi6.com/hotlink/y1sudszr8h/Jingle_Bell_Rock-_Lyrics.mp3");
	GivePlayerMoney(IDT,-20);
	
	}
	return 1;
}
CMD:colinda(playerid,params[])
{
    new stringC[128];
    GetPlayerName(playerid, IDC, sizeof(IDC));
    if(sscanf(params, "u", IDT)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /colinda [ID]");
	if(!IsPlayerConnected(IDT)) return SendClientMessage(playerid, -1, "Playerul nu este conectat !");
	if(IDT[playerid] == playerid) return  SendClientMessage(playerid, -1, "Nu poti sa te colinzi singur");
	else
	{
	format(stringC, sizeof(stringC), "vrea sa te colinde");
	SendPlayerMessageToPlayer(IDT,playerid,stringC);
	colinda=1;
	}
	
 	return 1;
}

Imi cer scuze daca e putin haotic sper sa va placa si sunt deschis la sugestii :)

Edited by Neculai
  • Upvote 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.