[Savet]Govornica


Započeo [yub] Leo_Karl, Decembar 10, 2012, 18:08:28 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

O kakvom savjetu se radi:E pa ovako,jel moze neko od vas da mi napravi,da naprimer na nekim mestima mogu da koristim komandu /govornica i mogu da pozovem bilo koga,ali da oduzme pare iz dzepa koliko potrosim naprimer za 1minut da oduzme 10$ jel zna neko kako?
Detaljan opis savjeta:Ako neko zna bice super!!
Komentar:Ko zna neka pomogne!!!

Blaeks

*

Madmen

Na vrh
forward IsAtGovornica(playerid);
na kraj skripte
public IsAtGovornica(playerid)
{
	    if(PlayerToPoint(1.0,playerid,KOORDINATE) || PlayerToPoint(1.0,playerid,KOORDINATE))
		{
		    return 1;
		}
		else if(PlayerToPoint(1.0,playerid,KOORDINATE) || PlayerToPoint(1.0,playerid,KOORDINATE))
		{
		    return 1;
		}
		else if(PlayerToPoint(1.0,playerid,KOORDINATE) || PlayerToPoint(1.0,playerid,KOORDINATE))
		{
		    return 1;
		}
		else if(PlayerToPoint(1.0,playerid,KOORDINATE) || PlayerToPoint(1.0,playerid,KOORDINATE))
		{
		    return 1;
		}
		else if(PlayerToPoint(1.0,playerid,KOORDINATE) || PlayerToPoint(1.0,playerid,KOORDINATE))
		{
		    return 1;
		}
	}
	return 0;
}
i onda napravis jednostavnu komandu npr: /pozovisagovornice i u tu komandu napravis proveru
if((!IsAtGovornica(playerid)) return SendClientMessage(playerid, -1, " niste na govornici ",);

Citat: Blaeks poslato Decembar 10, 2012, 18:12:25 POSLE PODNE
Na vrh
forward IsAtGovornica(playerid);
na kraj skripte
public IsAtGovornica(playerid)
{
	    if(PlayerToPoint(1.0,playerid,KOORDINATE) || PlayerToPoint(1.0,playerid,KOORDINATE))
		{
		    return 1;
		}
		else if(PlayerToPoint(1.0,playerid,KOORDINATE) || PlayerToPoint(1.0,playerid,KOORDINATE))
		{
		    return 1;
		}
		else if(PlayerToPoint(1.0,playerid,KOORDINATE) || PlayerToPoint(1.0,playerid,KOORDINATE))
		{
		    return 1;
		}
		else if(PlayerToPoint(1.0,playerid,KOORDINATE) || PlayerToPoint(1.0,playerid,KOORDINATE))
		{
		    return 1;
		}
		else if(PlayerToPoint(1.0,playerid,KOORDINATE) || PlayerToPoint(1.0,playerid,KOORDINATE))
		{
		    return 1;
		}
	}
	return 0;
}
i onda napravis jednostavnu komandu npr: /pozovisagovornice i u tu komandu napravis proveru
if((!IsAtGovornica(playerid)) return SendClientMessage(playerid, -1, " niste na govornici ",);


Ovo sto si mi dao,znao sam i ja da napravim,ali ja neznam komandu da napravim,u neu CMD nego u ifstrmp i da naprimer jedan minut prica oduzmemu se 200$ :D
Razmumes?Ae urati molim te!

Blaeks

*

Madmen

if(strcmp(cmd, "/pozovi", true) == 0)
	{
	    if((!IsAtGovornica(playerid)) return SendClientMessage(playerid, -1, " niste na govornici ",);
		{
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, -1, "Koristi: /pozovi [broj]");
				return 1;
			}
			if(PlayerInfo[playerid][pPnumber] == 0)
			{
				SendClientMessage(playerid, -1, "  nemas telefon!");
				return 1;
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), "* %s vadi telefon iz dzepa (/call) .", sendername);
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
			SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
			new phonenumb = strval(tmp);
			if(Mobile[playerid] != 255)
			{
				SendClientMessage(playerid, -1, "  Vec ste u pozivu...");
				return 1;
			}
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
					if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0)
					{
						giveplayerid = i;
						Mobile[playerid] = giveplayerid; 
						if(IsPlayerConnected(giveplayerid))
						{
						    if(giveplayerid != INVALID_PLAYER_ID)
						    {
						        if(PhoneOnline[giveplayerid] > 0)
						        {
						            SendClientMessage(playerid, -1, "   Mobilni pretplatnik nije trenutno dostupan,molimo pokusajte kasnije!");
						            return 1;
						         }
								if (Mobile[giveplayerid] == 255)
								{
									format(string, sizeof(string), "Telefon zvoni, ukucaj (/pickup) Pozivatelj: %s", sendername);
									SendClientMessage(giveplayerid, -1, string);
									GetPlayerName(giveplayerid, sendername, sizeof(sendername));
									RingTone[giveplayerid] = 10;
									format(string, sizeof(string), "* Igracu %s pocinje telefon da zvoni.", sendername);
									SendClientMessage(playerid, -1, "Koriscenje: Pritisnite T da bi pricali na vas telefon, ukucajte /h da bi prekinuli");
									ProxDetector(30.0, i, string, -1,-1,-1,-1,-1);
									CellTime[playerid] = 1;
									return 1;
								}
								}
							}
						}
					}
				}
			}
			SendClientMessage(playerid, -1, "  Dobili ste ton zauzeca..");
		}
		return 1;
	}
ovo sam ti izvuko iz tog tvog ravensa, pa ako imas nekih errora vezanih za varijable, samo ih zameni sa svojima i to je to :)

Citat: Blaeks poslato Decembar 10, 2012, 18:30:05 POSLE PODNE
if(strcmp(cmd, "/pozovi", true) == 0)
	{
	    if((!IsAtGovornica(playerid)) return SendClientMessage(playerid, -1, " niste na govornici ",);
		{
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, -1, "Koristi: /pozovi [broj]");
				return 1;
			}
			if(PlayerInfo[playerid][pPnumber] == 0)
			{
				SendClientMessage(playerid, -1, "  nemas telefon!");
				return 1;
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), "* %s vadi telefon iz dzepa (/call) .", sendername);
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
			SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
			new phonenumb = strval(tmp);
			if(Mobile[playerid] != 255)
			{
				SendClientMessage(playerid, -1, "  Vec ste u pozivu...");
				return 1;
			}
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
					if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0)
					{
						giveplayerid = i;
						Mobile[playerid] = giveplayerid; 
						if(IsPlayerConnected(giveplayerid))
						{
						    if(giveplayerid != INVALID_PLAYER_ID)
						    {
						        if(PhoneOnline[giveplayerid] > 0)
						        {
						            SendClientMessage(playerid, -1, "   Mobilni pretplatnik nije trenutno dostupan,molimo pokusajte kasnije!");
						            return 1;
						         }
								if (Mobile[giveplayerid] == 255)
								{
									format(string, sizeof(string), "Telefon zvoni, ukucaj (/pickup) Pozivatelj: %s", sendername);
									SendClientMessage(giveplayerid, -1, string);
									GetPlayerName(giveplayerid, sendername, sizeof(sendername));
									RingTone[giveplayerid] = 10;
									format(string, sizeof(string), "* Igracu %s pocinje telefon da zvoni.", sendername);
									SendClientMessage(playerid, -1, "Koriscenje: Pritisnite T da bi pricali na vas telefon, ukucajte /h da bi prekinuli");
									ProxDetector(30.0, i, string, -1,-1,-1,-1,-1);
									CellTime[playerid] = 1;
									return 1;
								}
								}
							}
						}
					}
				}
			}
			SendClientMessage(playerid, -1, "  Dobili ste ton zauzeca..");
		}
		return 1;
	}
ovo sam ti izvuko iz tog tvog ravensa, pa ako imas nekih errora vezanih za varijable, samo ih zameni sa svojima i to je to :)

Sacu da proverim,kompila mi se mod ;) A sa kog mog Raven's ???

Citat: Blaeks poslato Decembar 10, 2012, 18:30:05 POSLE PODNE
if(strcmp(cmd, "/pozovi", true) == 0)
	{
	    if((!IsAtGovornica(playerid)) return SendClientMessage(playerid, -1, " niste na govornici ",);
		{
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, -1, "Koristi: /pozovi [broj]");
				return 1;
			}
			if(PlayerInfo[playerid][pPnumber] == 0)
			{
				SendClientMessage(playerid, -1, "  nemas telefon!");
				return 1;
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), "* %s vadi telefon iz dzepa (/call) .", sendername);
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
			SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
			new phonenumb = strval(tmp);
			if(Mobile[playerid] != 255)
			{
				SendClientMessage(playerid, -1, "  Vec ste u pozivu...");
				return 1;
			}
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
					if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0)
					{
						giveplayerid = i;
						Mobile[playerid] = giveplayerid; 
						if(IsPlayerConnected(giveplayerid))
						{
						    if(giveplayerid != INVALID_PLAYER_ID)
						    {
						        if(PhoneOnline[giveplayerid] > 0)
						        {
						            SendClientMessage(playerid, -1, "   Mobilni pretplatnik nije trenutno dostupan,molimo pokusajte kasnije!");
						            return 1;
						         }
								if (Mobile[giveplayerid] == 255)
								{
									format(string, sizeof(string), "Telefon zvoni, ukucaj (/pickup) Pozivatelj: %s", sendername);
									SendClientMessage(giveplayerid, -1, string);
									GetPlayerName(giveplayerid, sendername, sizeof(sendername));
									RingTone[giveplayerid] = 10;
									format(string, sizeof(string), "* Igracu %s pocinje telefon da zvoni.", sendername);
									SendClientMessage(playerid, -1, "Koriscenje: Pritisnite T da bi pricali na vas telefon, ukucajte /h da bi prekinuli");
									ProxDetector(30.0, i, string, -1,-1,-1,-1,-1);
									CellTime[playerid] = 1;
									return 1;
								}
								}
							}
						}
					}
				}
			}
			SendClientMessage(playerid, -1, "  Dobili ste ton zauzeca..");
		}
		return 1;
	}
ovo sam ti izvuko iz tog tvog ravensa, pa ako imas nekih errora vezanih za varijable, samo ih zameni sa svojima i to je to :)

Izvinjavam se zbog DP-a,ali morao sam!Blaeks,nece da mi kompiluje GameMod izbaca mi gresku,jel ima neka druga???? Molim te pomogni!!!

Blaeks

*

Madmen

Uzmi tvoju komandu /call, i samo je iskopiraj, izmeni varijable, i izbaci nepotrebne stvari

Citat: Blaeks poslato Decembar 10, 2012, 18:55:28 POSLE PODNE
Uzmi tvoju komandu /call, i samo je iskopiraj, izmeni varijable, i izbaci nepotrebne stvari

Kako da namestim ako potrosi jedan minut samo da mu se oduznu pare narpimer 200$ ???
Ewo komande,pa namesti molim te!

if(strcmp(cmd, "/call", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
		{
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /call [BrojTelefona]");
				SendClientMessage(playerid, COLOR_GRAD2, "Savet: /calllist (Za listu dostupnih Brojeva)");
				return 1;
			}
			if(PlayerInfo[playerid][pMobilni] == 0)
			{
				SendClientMessage(playerid, COLOR_GRAD2, "** Nemate telefon!");
				return 1;
			}
			if(PlayerInfo[playerid][pJailed] == 1)
			{
				SendClientMessage(playerid, COLOR_GRAD2, "** Policija vam je oduzela telefon, telefon ce vam biti vracen po izlasku iz zatvora!");
				return 1;
			}
			if(PlayerInfo[playerid][pMuted] == 1)
			{
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "Nemozete pricati dok ste mutirani");
				return 1;
			}
			if(PlayerInfo[playerid][pKredit] == 0)
			{
				SendClientMessage(playerid, COLOR_GRAD2, "** Nemate kredita!");
				return 1;
			}
            //SetPlayerAttachedObject(playerid, 1, 330, 6, 0.069429, 0.032604, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
			format(string, sizeof(string), "* %s vadi mobilni telefon.", sendername);
			SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
			ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
			new phonenumb = strval(tmp);
			if(phonenumb == 115)
			{
			    SendClientMessage(playerid, COLOR_GREEN, "___________Lista servisnih brojeva____________");
			    SendClientMessage(playerid, COLOR_WHITE, "111 - pizza stack co., 222 - bus services");
			    SendClientMessage(playerid, COLOR_WHITE, "103 - medics, 444 - taxi, 555 - mechanic");
			    SendClientMessage(playerid, COLOR_WHITE, "151 - Advertisement Agency, 150 - ABC Studios");
			    SendClientMessage(playerid, COLOR_GREEN, "____________________________________________");
			    return 1;
			}
			if(phonenumb == 111)
			{
				new pizzaworkers = 0;
			    for(new i=0; i<MAX_PLAYERS; i++)
			    {
			        if(IsPlayerConnected(i))
			        {
			            if(PlayerInfo[i][pJob] == 17 && JobDuty[i] == 1)
			            {
			                pizzaworkers++;
			            }
			        }
			    }

			    if(pizzaworkers < 1)
          		{
          		    SendClientMessage(playerid, TEAM_GROVE_COLOR, "** Prihvatili su poziv.");
          		    SendClientMessage(playerid, 0xF4E19FAA, "Muski galas (Telefon): Nemao pice.");
          		    SendClientMessage(playerid, 0xF4E19FAA, "Muski glas kaze(Telefonom): Nemamo nijednog dostavljaca pice na duznosti.");
          		    SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Prekinuli su.");
              		return 1;
          		}

       			format(string, sizeof(string), "** %s ako hecete picu. (Koriscenje: /accept Pizza da prihvatite poziv)", sendername);
       			SendJobMessage(17, COLOR_WHITE, string);
       			SendClientMessage(playerid, TEAM_GROVE_COLOR, "** Prihvatili su poziv.");
       			SendClientMessage(playerid, 0xF4E19DAA, "Muski glas govori(telefon): Narucili ste picu.");
       			if(pizzaworkers == 1) { format(string, sizeof(string), "Muski glas govori(telefon): Dostavljac ce biti obavesten o vasoj narudzbini."); }
       			else { format(string, sizeof(string), "Muski glas govori(telefon): Imamo%d dosvavljaca pica na duznosti !", pizzaworkers); }
				SendClientMessage(playerid, 0xF4E19DAA, string);
 			    SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Prekinuli su.");
       			PizzaCall = playerid;
			    return 1;
			}
   			if(phonenumb == 222)
   			{
   			    new routezonecheck = IsInBusrouteZone(playerid);
				new drivercount = 0;
				if (routezonecheck == 0)
				{
					for (new i=0; i<=MAX_PLAYERS; i++)
					{
						if (IsPlayerConnected(i) && BusrouteEast[i][0] != 0) drivercount++;
					}
					if (drivercount != 0)
					{
						format(string, sizeof(string), "Trenutno postoji %d vozaca autobusa na istoku putu. Put je sledeci:", drivercount);
						SendClientMessage(playerid, COLOR_WHITE, string);
						SendBusRoute(playerid, 0);
					}
					else SendClientMessage(playerid, COLOR_GREY, "TNemamo vozaca na istocbnom putu.");
				}
				else if (routezonecheck == 1)
				{
					for (new i=0; i<=MAX_PLAYERS; i++)
					{
						if (IsPlayerConnected(i) && BusrouteWest[i][0] != 0) drivercount++;
					}
					if (drivercount != 0)
					{
						format(string, sizeof(string), "Trenutno postoji %d vozaca autobusa na zapadnom putu. Put je sledeci:", drivercount);
						SendClientMessage(playerid, COLOR_WHITE, string);
						SendBusRoute(playerid, 1);
					}
					else SendClientMessage(playerid, COLOR_GREY, "TNemamo vozaca na zapadnom putu.");
				}
				else SendClientMessage(playerid, COLOR_GREY, "Nema autobuske linije rade u ovoj oblasti u ovom trenutku.");
				return 1;
   			}
   			if(phonenumb == 103)
   			{
   			    if(Medics < 1)
		        {
		            SendClientMessage(playerid, COLOR_GREY, "** Ne postoje lekari na dužnosti u ovom trenutku, pokuÅ¡ajte ponovo kasnije !");
		            return 1;
		        }

			    format(string, sizeof(string), "** %s potreban vam je lekar. (Koriscenje: /accept medic da prihvatite poziv)", sendername);
		    	SendRadioMessage(4, TEAM_AZTECAS_COLOR, string);
		    	SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vi ste pozvali lekara, sacekajte odgovor.");
		    	MedicCall = playerid;
		    	return 1;
   			}
   			if(phonenumb == 444)
   			{
			    if(TaxiDrivers < 1)
		        {
          			 SendClientMessage(playerid, COLOR_GREY, "** Trenutno nemamo Vozaca Taxi-a na duznosti,pokusajte kasnije!");
				     return 1;
		        }
		        if(TransportDuty[playerid] > 0)
		        {
		            SendClientMessage(playerid, COLOR_GREY, "** Vec zovete Taxi Sluzbu!");
		            return 1;
		        }

			    format(string, sizeof(string), "** %s je potreban Teaxi Vozac. (Koristite /accept taxi da prihvatite poziv)", sendername);
		    	SendJobMessage(13, TEAM_AZTECAS_COLOR, string);
	    		SendClientMessage(playerid, TEAM_GROVE_COLOR, "** Prihvatili su poziv.");
		    	SendClientMessage(playerid, 0xF4E19FAA, "Muski glas kaze(Telefonom): All taxi drivers have been informed about your call.");
		    	SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Prekinuli su.");
		    	TaxiCall = playerid;
		    	return 1;
	    	}
   			if(phonenumb == 555)
   			{
   			    new mechanicworkers = 0;
			    for(new i=0; i<MAX_PLAYERS; i++)
			    {
			        if(IsPlayerConnected(i))
			        {
			            if(PlayerInfo[i][pJob] == 7 && JobDuty[i] == 1)
			            {
			                mechanicworkers++;
			            }
			        }
			    }
   			    if(mechanicworkers < 1)
		        {
		            SendClientMessage(playerid, TEAM_GROVE_COLOR, "** Prihvatili su poziv.");
		            SendClientMessage(playerid, 0xBBE1F2AA, "Muski glas kaze(Telefonom): Sorry we have no mechanics available at the moment.");
		            SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Prekinuli su.");
		            return 1;
		        }

			    format(string, sizeof(string), "** %s is in need of a Car Mechanic. (use /accept mechanic to accept the call)", sendername);
		    	SendJobMessage(7, COLOR_WHITE, string);
		    	SendClientMessage(playerid, TEAM_GROVE_COLOR, "** Prihvatili su poziv.");
		       	SendClientMessage(playerid, 0xBBE1F2AA, "Muski glas kaze(Telefonom): Hello, all mechanics at your area have been informed about your call.");
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Prekinuli su.");
		    	MechanicCall = playerid;
		    	return 1;
   			}
   			if(phonenumb == 151)
   			{
   			    if(PlayerInfo[playerid][pLevel] < 2)
   			    {
   			        SendClientMessage(playerid, COLOR_GREEN, "Advertisement business: We're only advertising well known people's ads.");
   			        SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Prekinuli su...");
   			    }
   			    else
   			    {
   			    	SendClientMessage(playerid, COLOR_WHITE, "Savet: Koriscenje: T za pricanje, /hangup da prekines");
   			    	SendClientMessage(playerid, COLOR_GREEN, "Advertisement business: DobrodoÅ¡li na oglas poslu, Å¡ta bi ste želeli da se oglaÅ¡avate?");
   			    	SendClientMessage(playerid, COLOR_WHITE, "Savet: Odve pisite vas oglas!");
   			    	Mobile[playerid] = 1180;
				}
   			    return 1;
   			}
   			if(phonenumb == 150)
   			{
   			    SendClientMessage(playerid, COLOR_WHITE, "Savet: Koriscenje: T za pricanje, /hangup da prekines.");
   			    SendClientMessage(playerid, COLOR_GREEN, "ABC Studio: Ostavite poruku posle zvucnog signala.!");
   			    SendClientMessage(playerid, COLOR_WHITE, "Beep!");
   			    Mobile[playerid] = 3900;
   			    return 1;
   			}
			if(phonenumb == 911)
			{
				SendClientMessage(playerid, TEAM_GROVE_COLOR, "Savet: Koriscenje: T za pricanje, /hangup da prekines");
				SendClientMessage(playerid, COLOR_BLUE, "Sluzba: Koj a vam je usluga potrebna: Policija ili Bolnica?");
				Mobile[playerid] = 911;
				return 1;
			}
			if(phonenumb == PlayerInfo[playerid][pPnumber])
			{
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Dobili ste zauzet ton...");
				return 1;
			}
			if(Mobile[playerid] != 255)
			{
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Vec ste u pozivu...");
				return 1;
			}
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(IsPlayerConnected(i))
				{
					if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0)
					{
						giveplayerid = i;
						Mobile[playerid] = giveplayerid; //caller connecting
						if(IsPlayerConnected(giveplayerid))
						{
						    if(giveplayerid != INVALID_PLAYER_ID)
						    {
						        if(PhoneOnline[giveplayerid] > 0)
						        {
						            SendClientMessage(playerid, COLOR_GREY, "** Igrac je trenutno nedostupan!");
						            return 1;
						        }
								if (Mobile[giveplayerid] == 255)
								{
									format(string, sizeof(string), "Vas telefon zvoni (/pickup) Pozivaoc: %s", sendername);
									SendClientMessage(giveplayerid, COLOR_YELLOW, string);
									GetPlayerName(giveplayerid, sendername, sizeof(sendername));
									RingTone[giveplayerid] = 10;
									if(Zvono[giveplayerid] > 0)
							        {
							 			if(PlayerInfo[giveplayerid][pMobilni] == 1) { PlayAudioStreamForPlayer(giveplayerid, "http://k003.kiwi6.com/hotlink/7a255f07g6/sony_ericsson_s.mp3"); }//Sony
							        	else if(PlayerInfo[giveplayerid][pMobilni] == 2) { PlayAudioStreamForPlayer(giveplayerid, "http://k004.kiwi6.com/hotlink/07209a8jck/zvuk_zvona.mp3"); }//Nokia
										else if(PlayerInfo[giveplayerid][pMobilni] == 3) { PlayAudioStreamForPlayer(giveplayerid, "http://k003.kiwi6.com/hotlink/r33974768v/samsung.mp3"); }//Samsung
										return 1;
									}
									format(string, sizeof(string), "* %s' telefon zvoni.", sendername);
									SendClientMessage(playerid, COLOR_WHITE, "Savet: Koriscenje: T za pricanje, /hangup da prekines");
									ProxDetector(30.0, i, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
									CellTime[playerid] = 1;
									return 1;
								}
							}
						}
					}
				}
			}
			SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Dobili ste zauzet ton....");
		}
		return 1;
	}

Blaeks

*

Madmen

if(strcmp(cmd, "/pozovisagovornice", true) == 0)
	{
	    if((!IsAtGovornica(playerid)) return SendClientMessage(playerid, -1, " niste na govornici ",);
		{
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, -1, "Koriscenje: /pozovisagovornice[BrojTelefona]");
				return 1;
			}
			if(PlayerInfo[playerid][pMobilni] == 0)
			{
				SendClientMessage(playerid, COLOR_GRAD2, "** Nemate telefon!");
				return 1;
			}
			if(PlayerInfo[playerid][pJailed] == 1)
			{
				SendClientMessage(playerid, COLOR_GRAD2, "** Policija vam je oduzela telefon, telefon ce vam biti vracen po izlasku iz zatvora!");
				return 1;
			}
			if(PlayerInfo[playerid][pMuted] == 1)
			{
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "Nemozete pricati dok ste mutirani");
				return 1;
			}
			if(PlayerInfo[playerid][pKredit] == 0)
			{
				SendClientMessage(playerid, COLOR_GRAD2, "** Nemate kredita!");
				return 1;
			}
            //SetPlayerAttachedObject(playerid, 1, 330, 6, 0.069429, 0.032604, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
			format(string, sizeof(string), "* %s vadi mobilni telefon.", sendername);
			SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
			ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
			new phonenumb = strval(tmp);
			if(phonenumb == 115)
			{
			    SendClientMessage(playerid, COLOR_GREEN, "___________Lista servisnih brojeva____________");
			    SendClientMessage(playerid, COLOR_WHITE, "111 - pizza stack co., 222 - bus services");
			    SendClientMessage(playerid, COLOR_WHITE, "103 - medics, 444 - taxi, 555 - mechanic");
			    SendClientMessage(playerid, COLOR_WHITE, "151 - Advertisement Agency, 150 - ABC Studios");
			    SendClientMessage(playerid, COLOR_GREEN, "____________________________________________");
			    return 1;
			}
			if(phonenumb == 111)
			{
				new pizzaworkers = 0;
			    for(new i=0; i<MAX_PLAYERS; i++)
			    {
			        if(IsPlayerConnected(i))
			        {
			            if(PlayerInfo[i][pJob] == 17 && JobDuty[i] == 1)
			            {
			                pizzaworkers++;
			            }
			        }
			    }

			    if(pizzaworkers < 1)
          		{
          		    SendClientMessage(playerid, TEAM_GROVE_COLOR, "** Prihvatili su poziv.");
          		    SendClientMessage(playerid, 0xF4E19FAA, "Muski galas (Telefon): Nemao pice.");
          		    SendClientMessage(playerid, 0xF4E19FAA, "Muski glas kaze(Telefonom): Nemamo nijednog dostavljaca pice na duznosti.");
          		    SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Prekinuli su.");
              		return 1;
          		}

       			format(string, sizeof(string), "** %s ako hecete picu. (Koriscenje: /accept Pizza da prihvatite poziv)", sendername);
       			SendJobMessage(17, COLOR_WHITE, string);
       			SendClientMessage(playerid, TEAM_GROVE_COLOR, "** Prihvatili su poziv.");
       			SendClientMessage(playerid, 0xF4E19DAA, "Muski glas govori(telefon): Narucili ste picu.");
       			if(pizzaworkers == 1) { format(string, sizeof(string), "Muski glas govori(telefon): Dostavljac ce biti obavesten o vasoj narudzbini."); }
       			else { format(string, sizeof(string), "Muski glas govori(telefon): Imamo%d dosvavljaca pica na duznosti !", pizzaworkers); }
				SendClientMessage(playerid, 0xF4E19DAA, string);
 			    SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Prekinuli su.");
       			PizzaCall = playerid;
			    return 1;
			}
   			if(phonenumb == 222)
   			{
   			    new routezonecheck = IsInBusrouteZone(playerid);
				new drivercount = 0;
				if (routezonecheck == 0)
				{
					for (new i=0; i<=MAX_PLAYERS; i++)
					{
						if (IsPlayerConnected(i) && BusrouteEast[i][0] != 0) drivercount++;
					}
					if (drivercount != 0)
					{
						format(string, sizeof(string), "Trenutno postoji %d vozaca autobusa na istoku putu. Put je sledeci:", drivercount);
						SendClientMessage(playerid, COLOR_WHITE, string);
						SendBusRoute(playerid, 0);
					}
					else SendClientMessage(playerid, COLOR_GREY, "TNemamo vozaca na istocbnom putu.");
				}
				else if (routezonecheck == 1)
				{
					for (new i=0; i<=MAX_PLAYERS; i++)
					{
						if (IsPlayerConnected(i) && BusrouteWest[i][0] != 0) drivercount++;
					}
					if (drivercount != 0)
					{
						format(string, sizeof(string), "Trenutno postoji %d vozaca autobusa na zapadnom putu. Put je sledeci:", drivercount);
						SendClientMessage(playerid, COLOR_WHITE, string);
						SendBusRoute(playerid, 1);
					}
					else SendClientMessage(playerid, COLOR_GREY, "TNemamo vozaca na zapadnom putu.");
				}
				else SendClientMessage(playerid, COLOR_GREY, "Nema autobuske linije rade u ovoj oblasti u ovom trenutku.");
				return 1;
   			}
   			if(phonenumb == 103)
   			{
   			    if(Medics < 1)
		        {
		            SendClientMessage(playerid, COLOR_GREY, "** Ne postoje lekari na dužnosti u ovom trenutku, pokuÅ¡ajte ponovo kasnije !");
		            return 1;
		        }

			    format(string, sizeof(string), "** %s potreban vam je lekar. (Koriscenje: /accept medic da prihvatite poziv)", sendername);
		    	SendRadioMessage(4, TEAM_AZTECAS_COLOR, string);
		    	SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vi ste pozvali lekara, sacekajte odgovor.");
		    	MedicCall = playerid;
		    	return 1;
   			}
   			if(phonenumb == 444)
   			{
			    if(TaxiDrivers < 1)
		        {
          			 SendClientMessage(playerid, COLOR_GREY, "** Trenutno nemamo Vozaca Taxi-a na duznosti,pokusajte kasnije!");
				     return 1;
		        }
		        if(TransportDuty[playerid] > 0)
		        {
		            SendClientMessage(playerid, COLOR_GREY, "** Vec zovete Taxi Sluzbu!");
		            return 1;
		        }

			    format(string, sizeof(string), "** %s je potreban Teaxi Vozac. (Koristite /accept taxi da prihvatite poziv)", sendername);
		    	SendJobMessage(13, TEAM_AZTECAS_COLOR, string);
	    		SendClientMessage(playerid, TEAM_GROVE_COLOR, "** Prihvatili su poziv.");
		    	SendClientMessage(playerid, 0xF4E19FAA, "Muski glas kaze(Telefonom): All taxi drivers have been informed about your call.");
		    	SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Prekinuli su.");
		    	TaxiCall = playerid;
		    	return 1;
	    	}
   			if(phonenumb == 555)
   			{
   			    new mechanicworkers = 0;
			    for(new i=0; i<MAX_PLAYERS; i++)
			    {
			        if(IsPlayerConnected(i))
			        {
			            if(PlayerInfo[i][pJob] == 7 && JobDuty[i] == 1)
			            {
			                mechanicworkers++;
			            }
			        }
			    }
   			    if(mechanicworkers < 1)
		        {
		            SendClientMessage(playerid, TEAM_GROVE_COLOR, "** Prihvatili su poziv.");
		            SendClientMessage(playerid, 0xBBE1F2AA, "Muski glas kaze(Telefonom): Sorry we have no mechanics available at the moment.");
		            SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Prekinuli su.");
		            return 1;
		        }

			    format(string, sizeof(string), "** %s is in need of a Car Mechanic. (use /accept mechanic to accept the call)", sendername);
		    	SendJobMessage(7, COLOR_WHITE, string);
		    	SendClientMessage(playerid, TEAM_GROVE_COLOR, "** Prihvatili su poziv.");
		       	SendClientMessage(playerid, 0xBBE1F2AA, "Muski glas kaze(Telefonom): Hello, all mechanics at your area have been informed about your call.");
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Prekinuli su.");
		    	MechanicCall = playerid;
		    	return 1;
   			}
   			if(phonenumb == 151)
   			{
   			    if(PlayerInfo[playerid][pLevel] < 2)
   			    {
   			        SendClientMessage(playerid, COLOR_GREEN, "Advertisement business: We're only advertising well known people's ads.");
   			        SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Prekinuli su...");
   			    }
   			    else
   			    {
   			    	SendClientMessage(playerid, COLOR_WHITE, "Savet: Koriscenje: T za pricanje, /hangup da prekines");
   			    	SendClientMessage(playerid, COLOR_GREEN, "Advertisement business: DobrodoÅ¡li na oglas poslu, Å¡ta bi ste želeli da se oglaÅ¡avate?");
   			    	SendClientMessage(playerid, COLOR_WHITE, "Savet: Odve pisite vas oglas!");
   			    	Mobile[playerid] = 1180;
				}
   			    return 1;
   			}
   			if(phonenumb == 150)
   			{
   			    SendClientMessage(playerid, COLOR_WHITE, "Savet: Koriscenje: T za pricanje, /hangup da prekines.");
   			    SendClientMessage(playerid, COLOR_GREEN, "ABC Studio: Ostavite poruku posle zvucnog signala.!");
   			    SendClientMessage(playerid, COLOR_WHITE, "Beep!");
   			    Mobile[playerid] = 3900;
   			    return 1;
   			}
			if(phonenumb == 911)
			{
				SendClientMessage(playerid, TEAM_GROVE_COLOR, "Savet: Koriscenje: T za pricanje, /hangup da prekines");
				SendClientMessage(playerid, COLOR_BLUE, "Sluzba: Koj a vam je usluga potrebna: Policija ili Bolnica?");
				Mobile[playerid] = 911;
				return 1;
			}
			if(phonenumb == PlayerInfo[playerid][pPnumber])
			{
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Dobili ste zauzet ton...");
				return 1;
			}
			if(Mobile[playerid] != 255)
			{
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Vec ste u pozivu...");
				return 1;
			}
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(IsPlayerConnected(i))
				{
					if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0)
					{
						giveplayerid = i;
						Mobile[playerid] = giveplayerid; //caller connecting
						if(IsPlayerConnected(giveplayerid))
						{
						    if(giveplayerid != INVALID_PLAYER_ID)
						    {
						        if(PhoneOnline[giveplayerid] > 0)
						        {
						            SendClientMessage(playerid, COLOR_GREY, "** Igrac je trenutno nedostupan!");
						            return 1;
						        }
								if (Mobile[giveplayerid] == 255)
								{
									format(string, sizeof(string), "Vas telefon zvoni (/pickup) Pozivaoc: %s", sendername);
									SendClientMessage(giveplayerid, COLOR_YELLOW, string);
									GetPlayerName(giveplayerid, sendername, sizeof(sendername));
									RingTone[giveplayerid] = 10;
									if(Zvono[giveplayerid] > 0)
							        {
							 			if(PlayerInfo[giveplayerid][pMobilni] == 1) { PlayAudioStreamForPlayer(giveplayerid, "http://k003.kiwi6.com/hotlink/7a255f07g6/sony_ericsson_s.mp3"); }//Sony
							        	else if(PlayerInfo[giveplayerid][pMobilni] == 2) { PlayAudioStreamForPlayer(giveplayerid, "http://k004.kiwi6.com/hotlink/07209a8jck/zvuk_zvona.mp3"); }//Nokia
										else if(PlayerInfo[giveplayerid][pMobilni] == 3) { PlayAudioStreamForPlayer(giveplayerid, "http://k003.kiwi6.com/hotlink/r33974768v/samsung.mp3"); }//Samsung
										return 1;
									}
									format(string, sizeof(string), "* %s' telefon zvoni.", sendername);
									SendClientMessage(playerid, COLOR_WHITE, "Savet: Koriscenje: T za pricanje, /hangup da prekines");
									ProxDetector(30.0, i, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
PlayerInfo[playerid][pCash] -= 200;
									CellTime[playerid] = 1;
									return 1;
								}
							}
						}
					}
				}
			}
			SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Dobili ste zauzet ton....");
		}
		return 1;
	}
eto ti , ista tvoja cmd, samo sam promenio par varijabli
Poslednja Izmena: Decembar 10, 2012, 19:14:28 POSLE PODNE od Blaeks

Citat: Blaeks poslato Decembar 10, 2012, 18:58:29 POSLE PODNE
if(strcmp(cmd, "/pozovisagovornice", true) == 0)
	{
	    if((!IsAtGovornica(playerid)) return SendClientMessage(playerid, -1, " niste na govornici ",);
		{
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, -1, "Koriscenje: /pozovisagovornice[BrojTelefona]");
				return 1;
			}
			if(PlayerInfo[playerid][pMobilni] == 0)
			{
				SendClientMessage(playerid, COLOR_GRAD2, "** Nemate telefon!");
				return 1;
			}
			if(PlayerInfo[playerid][pJailed] == 1)
			{
				SendClientMessage(playerid, COLOR_GRAD2, "** Policija vam je oduzela telefon, telefon ce vam biti vracen po izlasku iz zatvora!");
				return 1;
			}
			if(PlayerInfo[playerid][pMuted] == 1)
			{
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "Nemozete pricati dok ste mutirani");
				return 1;
			}
			if(PlayerInfo[playerid][pKredit] == 0)
			{
				SendClientMessage(playerid, COLOR_GRAD2, "** Nemate kredita!");
				return 1;
			}
            //SetPlayerAttachedObject(playerid, 1, 330, 6, 0.069429, 0.032604, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
			format(string, sizeof(string), "* %s vadi mobilni telefon.", sendername);
			SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
			ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
			new phonenumb = strval(tmp);
			if(phonenumb == 115)
			{
			    SendClientMessage(playerid, COLOR_GREEN, "___________Lista servisnih brojeva____________");
			    SendClientMessage(playerid, COLOR_WHITE, "111 - pizza stack co., 222 - bus services");
			    SendClientMessage(playerid, COLOR_WHITE, "103 - medics, 444 - taxi, 555 - mechanic");
			    SendClientMessage(playerid, COLOR_WHITE, "151 - Advertisement Agency, 150 - ABC Studios");
			    SendClientMessage(playerid, COLOR_GREEN, "____________________________________________");
			    return 1;
			}
			if(phonenumb == 111)
			{
				new pizzaworkers = 0;
			    for(new i=0; i<MAX_PLAYERS; i++)
			    {
			        if(IsPlayerConnected(i))
			        {
			            if(PlayerInfo[i][pJob] == 17 && JobDuty[i] == 1)
			            {
			                pizzaworkers++;
			            }
			        }
			    }

			    if(pizzaworkers < 1)
          		{
          		    SendClientMessage(playerid, TEAM_GROVE_COLOR, "** Prihvatili su poziv.");
          		    SendClientMessage(playerid, 0xF4E19FAA, "Muski galas (Telefon): Nemao pice.");
          		    SendClientMessage(playerid, 0xF4E19FAA, "Muski glas kaze(Telefonom): Nemamo nijednog dostavljaca pice na duznosti.");
          		    SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Prekinuli su.");
              		return 1;
          		}

       			format(string, sizeof(string), "** %s ako hecete picu. (Koriscenje: /accept Pizza da prihvatite poziv)", sendername);
       			SendJobMessage(17, COLOR_WHITE, string);
       			SendClientMessage(playerid, TEAM_GROVE_COLOR, "** Prihvatili su poziv.");
       			SendClientMessage(playerid, 0xF4E19DAA, "Muski glas govori(telefon): Narucili ste picu.");
       			if(pizzaworkers == 1) { format(string, sizeof(string), "Muski glas govori(telefon): Dostavljac ce biti obavesten o vasoj narudzbini."); }
       			else { format(string, sizeof(string), "Muski glas govori(telefon): Imamo%d dosvavljaca pica na duznosti !", pizzaworkers); }
				SendClientMessage(playerid, 0xF4E19DAA, string);
 			    SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Prekinuli su.");
       			PizzaCall = playerid;
			    return 1;
			}
   			if(phonenumb == 222)
   			{
   			    new routezonecheck = IsInBusrouteZone(playerid);
				new drivercount = 0;
				if (routezonecheck == 0)
				{
					for (new i=0; i<=MAX_PLAYERS; i++)
					{
						if (IsPlayerConnected(i) && BusrouteEast[i][0] != 0) drivercount++;
					}
					if (drivercount != 0)
					{
						format(string, sizeof(string), "Trenutno postoji %d vozaca autobusa na istoku putu. Put je sledeci:", drivercount);
						SendClientMessage(playerid, COLOR_WHITE, string);
						SendBusRoute(playerid, 0);
					}
					else SendClientMessage(playerid, COLOR_GREY, "TNemamo vozaca na istocbnom putu.");
				}
				else if (routezonecheck == 1)
				{
					for (new i=0; i<=MAX_PLAYERS; i++)
					{
						if (IsPlayerConnected(i) && BusrouteWest[i][0] != 0) drivercount++;
					}
					if (drivercount != 0)
					{
						format(string, sizeof(string), "Trenutno postoji %d vozaca autobusa na zapadnom putu. Put je sledeci:", drivercount);
						SendClientMessage(playerid, COLOR_WHITE, string);
						SendBusRoute(playerid, 1);
					}
					else SendClientMessage(playerid, COLOR_GREY, "TNemamo vozaca na zapadnom putu.");
				}
				else SendClientMessage(playerid, COLOR_GREY, "Nema autobuske linije rade u ovoj oblasti u ovom trenutku.");
				return 1;
   			}
   			if(phonenumb == 103)
   			{
   			    if(Medics < 1)
		        {
		            SendClientMessage(playerid, COLOR_GREY, "** Ne postoje lekari na dužnosti u ovom trenutku, pokuÅ¡ajte ponovo kasnije !");
		            return 1;
		        }

			    format(string, sizeof(string), "** %s potreban vam je lekar. (Koriscenje: /accept medic da prihvatite poziv)", sendername);
		    	SendRadioMessage(4, TEAM_AZTECAS_COLOR, string);
		    	SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vi ste pozvali lekara, sacekajte odgovor.");
		    	MedicCall = playerid;
		    	return 1;
   			}
   			if(phonenumb == 444)
   			{
			    if(TaxiDrivers < 1)
		        {
          			 SendClientMessage(playerid, COLOR_GREY, "** Trenutno nemamo Vozaca Taxi-a na duznosti,pokusajte kasnije!");
				     return 1;
		        }
		        if(TransportDuty[playerid] > 0)
		        {
		            SendClientMessage(playerid, COLOR_GREY, "** Vec zovete Taxi Sluzbu!");
		            return 1;
		        }

			    format(string, sizeof(string), "** %s je potreban Teaxi Vozac. (Koristite /accept taxi da prihvatite poziv)", sendername);
		    	SendJobMessage(13, TEAM_AZTECAS_COLOR, string);
	    		SendClientMessage(playerid, TEAM_GROVE_COLOR, "** Prihvatili su poziv.");
		    	SendClientMessage(playerid, 0xF4E19FAA, "Muski glas kaze(Telefonom): All taxi drivers have been informed about your call.");
		    	SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Prekinuli su.");
		    	TaxiCall = playerid;
		    	return 1;
	    	}
   			if(phonenumb == 555)
   			{
   			    new mechanicworkers = 0;
			    for(new i=0; i<MAX_PLAYERS; i++)
			    {
			        if(IsPlayerConnected(i))
			        {
			            if(PlayerInfo[i][pJob] == 7 && JobDuty[i] == 1)
			            {
			                mechanicworkers++;
			            }
			        }
			    }
   			    if(mechanicworkers < 1)
		        {
		            SendClientMessage(playerid, TEAM_GROVE_COLOR, "** Prihvatili su poziv.");
		            SendClientMessage(playerid, 0xBBE1F2AA, "Muski glas kaze(Telefonom): Sorry we have no mechanics available at the moment.");
		            SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Prekinuli su.");
		            return 1;
		        }

			    format(string, sizeof(string), "** %s is in need of a Car Mechanic. (use /accept mechanic to accept the call)", sendername);
		    	SendJobMessage(7, COLOR_WHITE, string);
		    	SendClientMessage(playerid, TEAM_GROVE_COLOR, "** Prihvatili su poziv.");
		       	SendClientMessage(playerid, 0xBBE1F2AA, "Muski glas kaze(Telefonom): Hello, all mechanics at your area have been informed about your call.");
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Prekinuli su.");
		    	MechanicCall = playerid;
		    	return 1;
   			}
   			if(phonenumb == 151)
   			{
   			    if(PlayerInfo[playerid][pLevel] < 2)
   			    {
   			        SendClientMessage(playerid, COLOR_GREEN, "Advertisement business: We're only advertising well known people's ads.");
   			        SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Prekinuli su...");
   			    }
   			    else
   			    {
   			    	SendClientMessage(playerid, COLOR_WHITE, "Savet: Koriscenje: T za pricanje, /hangup da prekines");
   			    	SendClientMessage(playerid, COLOR_GREEN, "Advertisement business: DobrodoÅ¡li na oglas poslu, Å¡ta bi ste želeli da se oglaÅ¡avate?");
   			    	SendClientMessage(playerid, COLOR_WHITE, "Savet: Odve pisite vas oglas!");
   			    	Mobile[playerid] = 1180;
				}
   			    return 1;
   			}
   			if(phonenumb == 150)
   			{
   			    SendClientMessage(playerid, COLOR_WHITE, "Savet: Koriscenje: T za pricanje, /hangup da prekines.");
   			    SendClientMessage(playerid, COLOR_GREEN, "ABC Studio: Ostavite poruku posle zvucnog signala.!");
   			    SendClientMessage(playerid, COLOR_WHITE, "Beep!");
   			    Mobile[playerid] = 3900;
   			    return 1;
   			}
			if(phonenumb == 911)
			{
				SendClientMessage(playerid, TEAM_GROVE_COLOR, "Savet: Koriscenje: T za pricanje, /hangup da prekines");
				SendClientMessage(playerid, COLOR_BLUE, "Sluzba: Koj a vam je usluga potrebna: Policija ili Bolnica?");
				Mobile[playerid] = 911;
				return 1;
			}
			if(phonenumb == PlayerInfo[playerid][pPnumber])
			{
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Dobili ste zauzet ton...");
				return 1;
			}
			if(Mobile[playerid] != 255)
			{
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Vec ste u pozivu...");
				return 1;
			}
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(IsPlayerConnected(i))
				{
					if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0)
					{
						giveplayerid = i;
						Mobile[playerid] = giveplayerid; //caller connecting
						if(IsPlayerConnected(giveplayerid))
						{
						    if(giveplayerid != INVALID_PLAYER_ID)
						    {
						        if(PhoneOnline[giveplayerid] > 0)
						        {
						            SendClientMessage(playerid, COLOR_GREY, "** Igrac je trenutno nedostupan!");
						            return 1;
						        }
								if (Mobile[giveplayerid] == 255)
								{
									format(string, sizeof(string), "Vas telefon zvoni (/pickup) Pozivaoc: %s", sendername);
									SendClientMessage(giveplayerid, COLOR_YELLOW, string);
									GetPlayerName(giveplayerid, sendername, sizeof(sendername));
									RingTone[giveplayerid] = 10;
									if(Zvono[giveplayerid] > 0)
							        {
							 			if(PlayerInfo[giveplayerid][pMobilni] == 1) { PlayAudioStreamForPlayer(giveplayerid, "http://k003.kiwi6.com/hotlink/7a255f07g6/sony_ericsson_s.mp3"); }//Sony
							        	else if(PlayerInfo[giveplayerid][pMobilni] == 2) { PlayAudioStreamForPlayer(giveplayerid, "http://k004.kiwi6.com/hotlink/07209a8jck/zvuk_zvona.mp3"); }//Nokia
										else if(PlayerInfo[giveplayerid][pMobilni] == 3) { PlayAudioStreamForPlayer(giveplayerid, "http://k003.kiwi6.com/hotlink/r33974768v/samsung.mp3"); }//Samsung
										return 1;
									}
									format(string, sizeof(string), "* %s' telefon zvoni.", sendername);
									SendClientMessage(playerid, COLOR_WHITE, "Savet: Koriscenje: T za pricanje, /hangup da prekines");
									ProxDetector(30.0, i, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
									CellTime[playerid] = 1;
									return 1;
								}
							}
						}
					}
				}
			}
			SendClientMessage(playerid, TEAM_CYAN_COLOR, "** Dobili ste zauzet ton....");
		}
		return 1;
	}
eto ti , ista tvoja cmd, samo sam promenio par varijabli

Da li si namestio da mi oduzima pare,jer valjda mi netreba telefon dok zovem na govorinici! ???

Blaeks

*

Madmen



Ja se izvinjavam zbog DP-a,ali moram ovako,Bleaks nece ovo da mi radi jel mozes da mi uradis komandu sada Jer mi mnogo treba?Ocu da mi oduzme pare ako naprimer zove i prica 1minut oduzme mu 200$ ??? Jel moze ????