Jump to content

Recommended Posts

Posted (edited)

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
Posted

Haide-ti sa uitam de toate, si sa fim unpic mai buni, La multi ani.. cu sanatate ... Bla bla bla,

Ce-mi place atmosfera de Craciun, continuati cu scripturile for Christmas :D Le ador!

242086.png

Posted

Super. Cum zicea si xStyle =)) as pune cu Fuego :)),dar pun eu "Impodobeste mama bradul"

Posted

Haide-ti sa uitam de toate, si sa fim unpic mai buni, La multi ani.. cu sanatate ... Bla bla bla,

Ce-mi place atmosfera de Craciun, continuati cu scripturile for Christmas :D Le ador!

Si eu.De obicei sunt foarte interesante :D

 

Felicitarile mele!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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.