[GameMode] [GM]Los Angeles Roleplay [OLD THREAD]
#92

Quote:
Originally Posted by cristofer
Quote:
Originally Posted by Jewsus
So i have alot of problems with this
/ta says it cuffs the person but it doesent and you gotta do /drag and then cuff the person
then it stopped working
so i tried re compiling it
says it cant read somthing about STRING
Код:
 if(strcmp(cmd, "/drag", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			if(IsACop(playerid))
			{
			  tmp = strtok(cmdtext, idx);
				if(!strlen(tmp)) {
					SendClientMessage(playerid, COLOR_WHITE, "USAGE: /drag [Playerid/PartOfName]");
					return 1;
				}
				giveplayerid = ReturnUser(tmp);
			  if(IsPlayerConnected(giveplayerid))
				{
				  if(giveplayerid != INVALID_PLAYER_ID)
				  {
				    if(gTeam[giveplayerid] == 2 || IsACop(giveplayerid))
				    {
				      SendClientMessage(playerid, COLOR_GREY, " You can't drag Cops !");
					    return 1;
				    }
					  if(DragOff[giveplayerid] > 0)
					  {
					    SendClientMessage(playerid, COLOR_GREY, " Player already being dragged!");
					    return 1;
					  }
						if (ProxDetectorS(3.0, playerid, giveplayerid))
						{
     					  if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot drag yourself!"); return 1; }
						    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
								GetPlayerName(playerid, sendername, sizeof(sendername));
						    format(string, sizeof(string), "* You are being by %s, untill he stops.", sendername);
								SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
								format(string, sizeof(string), "* You are dragging %s, untill you stop.", giveplayer);
								SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
								format(string, sizeof(string), "* %s starts dragging %s.", sendername ,giveplayer);
								ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
								TogglePlayerControllable(giveplayerid, 0);
								DragOff[giveplayerid] = playerid;

						}
						else
						{
						  SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
						  return 1;
						}
					}
				}
				else
				{
				  SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
				  return 1;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / National Guard!");
			}
		}
		return 1;
	}
    if(strcmp(cmd, "/stopdrag", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			if(IsACop(playerid))
			{
			  tmp = strtok(cmdtext, idx);
				if(!strlen(tmp)) {
					SendClientMessage(playerid, COLOR_WHITE, "USAGE: /stopdrag [Playerid/PartOfName]");
					return 1;
				}
				giveplayerid = ReturnUser(tmp);
				if(IsPlayerConnected(giveplayerid))
				{
					if(giveplayerid != INVALID_PLAYER_ID)
					{
					  if (ProxDetectorS(3.0, playerid, giveplayerid))
						{
						  if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot stop dragging yourself!"); return 1; }
							if(DragOff[giveplayerid] > 0)
							{
							  GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
								GetPlayerName(playerid, sendername, sizeof(sendername));
							  format(string, sizeof(string), "* %s stopped dragging you.", sendername);
								SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
								format(string, sizeof(string), "* You stopped dragging %s.", giveplayer);
								SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
								TogglePlayerControllable(giveplayerid, 1);
								DragOff[giveplayerid] = 0;
							}
							else
							{
							  SendClientMessage(playerid, COLOR_GREY, " That player isn't being dragged !");
							  return 1;
							}
						}
						else
						{
						  SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
						  return 1;
						}
					}
				}
				else
				{
				  SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
				  return 1;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / FBI / National Guard !");
			}
		}//not connected
		return 1;
	}
Where did you get that from?
Reply


Messages In This Thread
[GM]Los Angeles Roleplay [OLD THREAD] - by [IB]Scorcher - 25.02.2009, 06:48
Re: [GM]Los Angeles Roleplay - by TheRock92 - 25.02.2009, 11:07
Re: [GM]Los Angeles Roleplay - by mcaschecka - 25.02.2009, 13:01
Re: [GM]Los Angeles Roleplay - by TheRock92 - 25.02.2009, 14:27
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 25.02.2009, 15:09
Re: [GM]Los Angeles Roleplay - by SiJ - 25.02.2009, 16:07
Re: [GM]Los Angeles Roleplay - by Landon - 25.02.2009, 16:10
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 25.02.2009, 16:21
Re: [GM]Los Angeles Roleplay - by TheRock92 - 25.02.2009, 16:25
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 25.02.2009, 16:29
Re: [GM]Los Angeles Roleplay - by TheRock92 - 25.02.2009, 16:33
Re: [GM]Los Angeles Roleplay - by MenaceX^ - 25.02.2009, 16:35
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 25.02.2009, 16:47
Re: [GM]Los Angeles Roleplay - by MenaceX^ - 25.02.2009, 16:48
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 25.02.2009, 16:50
Re: [GM]Los Angeles Roleplay - by MenaceX^ - 25.02.2009, 16:51
Re: [GM]Los Angeles Roleplay - by Norn - 25.02.2009, 16:53
Re: [GM]Los Angeles Roleplay - by MenaceX^ - 25.02.2009, 17:47
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 25.02.2009, 18:06
Re: [GM]Los Angeles Roleplay - by MenaceX^ - 25.02.2009, 18:55
Re: [GM]Los Angeles Roleplay - by SiJ - 25.02.2009, 19:05
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 25.02.2009, 20:06
Re: [GM]Los Angeles Roleplay - by Acoole - 26.02.2009, 06:27
Re: [GM]Los Angeles Roleplay - by Dairyll - 26.02.2009, 06:49
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 26.02.2009, 07:13
Re: [GM]Los Angeles Roleplay - by Klutty - 26.02.2009, 14:05
Re: [GM]Los Angeles Roleplay - by SiJ - 26.02.2009, 14:28
Re: [GM]Los Angeles Roleplay - by hujmens007 - 26.02.2009, 14:39
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 26.02.2009, 15:52
Re: [GM]Los Angeles Roleplay - by BioFreeze - 26.02.2009, 16:26
Re: [GM]Los Angeles Roleplay - by Jose 510 - 28.02.2009, 17:53
Re: [GM]Los Angeles Roleplay - by Elorreli - 28.02.2009, 17:53
Re: [GM]Los Angeles Roleplay - by Jose 510 - 28.02.2009, 17:55
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 28.02.2009, 18:06
Re: [GM]Los Angeles Roleplay - by Dairyll - 28.02.2009, 18:34
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 28.02.2009, 18:36
Re: [GM]Los Angeles Roleplay - by Erru - 28.02.2009, 18:36
Re: [GM]Los Angeles Roleplay - by Dairyll - 28.02.2009, 18:38
Re: [GM]Los Angeles Roleplay - by CrlminaL - 28.02.2009, 18:41
Re: [GM]Los Angeles Roleplay - by CrlminaL - 28.02.2009, 18:42
Re: [GM]Los Angeles Roleplay - by shadowski - 15.03.2009, 14:48
Re: [GM]Los Angeles Roleplay - by CrlminaL - 15.03.2009, 14:52
Re: [GM]Los Angeles Roleplay - by [JnG]MediaFire - 15.03.2009, 14:55
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 15.03.2009, 15:06
Re: [GM]Los Angeles Roleplay - by shadowski - 15.03.2009, 15:26
Re: [GM]Los Angeles Roleplay - by andyF - 15.03.2009, 15:30
Re: [GM]Los Angeles Roleplay - by DRCharlie - 15.03.2009, 15:42
Re: [GM]Los Angeles Roleplay - by boolaboola - 15.03.2009, 19:14
Re: [GM]Los Angeles Roleplay - by guest380349483093 - 15.03.2009, 20:55
Re: [GM]Los Angeles Roleplay - by Dairyll - 16.03.2009, 03:26
Re: [GM]Los Angeles Roleplay - by marowak - 25.03.2009, 10:50
Re: [GM]Los Angeles Roleplay - by maniac001 - 25.03.2009, 14:44
Re: [GM]Los Angeles Roleplay - by tooomi - 26.03.2009, 11:11
Re: [GM]Los Angeles Roleplay - by ArTisT - 26.03.2009, 11:42
Re: [GM]Los Angeles Roleplay - by tooomi - 27.03.2009, 08:09
Re: [GM]Los Angeles Roleplay - by Snyper18 - 27.03.2009, 12:03
Re: [GM]Los Angeles Roleplay - by Jaztek_Hodzic - 27.03.2009, 12:53
Re: [GM]Los Angeles Roleplay - by Ryan_Undering - 27.03.2009, 13:13
Re: [GM]Los Angeles Roleplay - by panther2 - 27.03.2009, 23:38
Re: [GM]Los Angeles Roleplay - by Snyper18 - 27.03.2009, 23:44
Re: [GM]Los Angeles Roleplay - by Javi_Cogollero - 06.05.2009, 16:33
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 07.05.2009, 07:06
Re: [GM]Los Angeles Roleplay - by laser50 - 07.05.2009, 10:25
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 07.05.2009, 17:24
Re: [GM]Los Angeles Roleplay - by Tyrone1234 - 07.05.2009, 23:09
Re: [GM]Los Angeles Roleplay - by Magneeto - 08.05.2009, 01:41
Re: [GM]Los Angeles Roleplay - by Magneeto - 08.05.2009, 01:48
Re: [GM]Los Angeles Roleplay - by Larry_Langley - 08.05.2009, 02:16
Re: [GM]Los Angeles Roleplay - by shady91 - 08.05.2009, 03:17
Re: [GM]Los Angeles Roleplay - by harly - 08.05.2009, 06:52
Re: [GM]Los Angeles Roleplay - by JoeDaDude - 15.05.2009, 18:08
Re: [GM]Los Angeles Roleplay - by Larry_Langley - 15.05.2009, 18:09
Re: [GM]Los Angeles Roleplay - by Magneeto - 15.05.2009, 18:54
Re: [GM]Los Angeles Roleplay - by JoeDaDude - 15.05.2009, 18:55
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 15.05.2009, 19:02
Re: [GM]Los Angeles Roleplay - by GTAScripter - 16.05.2009, 07:45
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 16.05.2009, 07:59
Re: [GM]Los Angeles Roleplay - by GTAScripter - 16.05.2009, 08:36
Re: [GM]Los Angeles Roleplay - by xFlyer - 16.05.2009, 13:50
Re: [GM]Los Angeles Roleplay - by Andron - 16.05.2009, 16:37
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 16.05.2009, 20:29
Re: [GM]Los Angeles Roleplay - by Peter_Corneile - 17.05.2009, 14:23
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 17.05.2009, 14:56
Re: [GM]Los Angeles Roleplay - by Peter_Corneile - 17.05.2009, 15:17
Re: [GM]Los Angeles Roleplay - by NeRoSiS - 17.05.2009, 15:59
Re: [GM]Los Angeles Roleplay - by basicllsw - 17.05.2009, 16:17
Re: [GM]Los Angeles Roleplay - by T.I. - 17.05.2009, 18:29
Re: [GM]Los Angeles Roleplay - by kony1994 - 17.05.2009, 18:44
Re: [GM]Los Angeles Roleplay - by shady91 - 18.05.2009, 08:40
Re: [GM]Los Angeles Roleplay - by Jewsus - 18.05.2009, 13:30
Re: [GM]Los Angeles Roleplay - by cristofer - 18.05.2009, 15:53
Re: [GM]Los Angeles Roleplay - by [IB]Scorcher - 18.05.2009, 16:27
Re: [GM]Los Angeles Roleplay - by BioFreeze - 18.05.2009, 19:59
Re: [GM]Los Angeles Roleplay - by Nikko_Vincci - 19.05.2009, 19:43
Re: [GM]Los Angeles Roleplay - by T.I. - 19.05.2009, 19:53

Forum Jump:


Users browsing this thread: 4 Guest(s)