[Include] CopTools (0.3c)
#30

Everything looks like this:

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/arm", cmdtext, true, 10) == 0)
{
PutRiotShieldOnArm(playerid);
return 1;
}
if (strcmp("/back", cmdtext, true, 10) == 0)
{
PutRiotShieldOnBack(playerid);
return 1;
}
if (strcmp("/light", cmdtext, true, 10) == 0)
{
GiveFlashLight(playerid);
return 1;
}
if (strcmp("/tazer", cmdtext, true, 10) == 0)
{
GiveTazer(playerid);
return 1;
}
if (strcmp("/removeitems", cmdtext, true, 10) == 0)
{
RemoveItems(playerid);
return 1;
}
return 0;
}

if(!strcmp(cmdtext, "/ita", true,4))
{
if(playerDB[playerid][specialybe]!=1){SendClientMessage(playerid,0x7DB34DFF,"* Si komanda tik policininkams"); return 1;}
new vardas[MAX_PLAYER_NAME],itarimas[256];
strmid(vardas,GetArgument(1, cmdtext,0),0,MAX_PLAYER_NAME);
itarimas = GetArgument(2, cmdtext,1);
if(!strcmp(vardas, "0", true) || !strcmp(itarimas, "0", true)){SendClientMessage(playerid, 0x0000A890, "* Itarti zaideja: /ita [nick] [itarimas]"); return 1;}
new id = GetPlayeridMid(vardas);
if (id == INVALID_PLAYER_ID){ SendClientMessage(playerid, 0x7DB34DFF, "* Tokio vardo nera"); return 1;}
if (id == playerid){ SendClientMessage(playerid, 0x7DB34DFF, "* Saves itarti negali"); return 1;}
new Float:Coo[3];
GetPlayerPos(id,Coo[0],Coo[1],Coo[2]);
if(!PlayerToPoint(100, playerid, Coo[0],Coo[1],Coo[2])){SendClientMessage(playerid, 0x7DB34DFF, "* Zaidejas per toli, kaip tu gali pamatyti ka jis daro?"); return 1;}
new msg[128],police[MAX_PLAYER_NAME],itar[MAX_PLAYER_NAME];
GetPlayerName(playerid,police,sizeof(police));
GetPlayerName(id,itar,sizeof(itar));
SetPlayerWantedLevel(id,GetPlayerWantedLevel(id)+1 );
format(msg,sizeof(msg),"[racija] %s: pastebejau, kaip %s %s!",police,itar,itarimas);
SendMessageToCops(0x7DB34DFF,msg);
return 1;
}

Reply


Messages In This Thread
CopTools (0.3c) - by Geso - 08.12.2010, 16:40
Re: CopTools (0.3c) - by nielsbon1 - 08.12.2010, 16:45
Re : CopTools (0.3c) - by Peppe95 - 08.12.2010, 16:46
Re: CopTools (0.3c) - by Scenario - 08.12.2010, 16:48
Re: CopTools (0.3c) - by Geso - 08.12.2010, 16:51
Re: CopTools (0.3c) - by The_Gangstas - 08.12.2010, 16:52
Re: CopTools (0.3c) - by Flyfishes - 08.12.2010, 16:53
Re : CopTools (0.3c) - by Hip-hop - 08.12.2010, 17:01
AW: CopTools (0.3c) - by Trooper[Y] - 08.12.2010, 20:36
Re: CopTools (0.3c) - by wups - 08.12.2010, 20:52
Re: CopTools (0.3c) - by Geso - 09.12.2010, 13:52
Re: CopTools (0.3c) - by ZmaXy - 09.12.2010, 17:53
Re: CopTools (0.3c) - by wups - 09.12.2010, 18:24
Re: CopTools (0.3c) - by [MWR]Blood - 18.12.2010, 13:21
Re: CopTools (0.3c) - by Geso - 18.12.2010, 13:48
Re: CopTools (0.3c) - by paramedic114 - 18.12.2010, 13:56
Re: CopTools (0.3c) - by Geso - 18.12.2010, 14:00
Re: CopTools (0.3c) - by Noss* - 18.12.2010, 20:12
Re: CopTools (0.3c) - by paramedic114 - 18.12.2010, 20:23
Re: CopTools (0.3c) - by Tessar - 18.12.2010, 21:09
Re: CopTools (0.3c) - by jameskmonger - 18.12.2010, 21:18
Re: CopTools (0.3c) - by Geso - 19.12.2010, 08:43
Re: CopTools (0.3c) - by knackworst - 19.12.2010, 08:53
Re: CopTools (0.3c) - by paramedic114 - 19.12.2010, 12:01
Re: CopTools (0.3c) - by Geso - 19.12.2010, 12:07
Re: CopTools (0.3c) - by paramedic114 - 19.12.2010, 12:08
Re: CopTools (0.3c) - by paramedic114 - 19.12.2010, 13:47
Re: CopTools (0.3c) - by Geso - 19.12.2010, 13:49
Re: CopTools (0.3c) - by SpiderWalk - 22.01.2011, 17:03
Re: CopTools (0.3c) - by Lukas_Guetta - 22.01.2011, 17:16
Re: CopTools (0.3c) - by Geso - 23.01.2011, 07:57
Respuesta: CopTools (0.3c) - by SuperMarioRol - 29.01.2011, 10:46
Re: Respuesta: CopTools (0.3c) - by Geso - 29.01.2011, 11:00
Re: CopTools (0.3c) - by [SFA]SpiRRiT - 06.03.2011, 07:31
Re: CopTools (0.3c) - by Tee - 08.03.2011, 01:45
Re: CopTools (0.3c) - by ConsoleX - 13.03.2011, 01:29
Re: CopTools (0.3c) - by DrewFArnold - 13.03.2011, 09:10
Re: CopTools (0.3c) - by Geso - 13.03.2011, 14:30
Re: CopTools (0.3c) - by ConsoleX - 13.03.2011, 20:07
Respuesta: CopTools (0.3c) - by Code8976Man - 13.03.2011, 20:12
Re: CopTools (0.3c) - by ConsoleX - 14.03.2011, 01:30
Re: CopTools (0.3c) - by Geso - 14.03.2011, 15:25
Re: CopTools (0.3c) - by ConsoleX - 15.03.2011, 04:45
Re: CopTools (0.3c) - by Geso - 15.03.2011, 15:18
Re: CopTools (0.3c) - by ConsoleX - 15.03.2011, 21:16
Re: CopTools (0.3c) - by Geso - 16.03.2011, 15:14
Re: CopTools (0.3c) - by Medal Of Honor team - 16.03.2011, 15:16
Re: CopTools (0.3c) - by calzo2011 - 01.08.2011, 11:26
Re: CopTools (0.3c) - by Geso - 01.08.2011, 12:16
Re: CopTools (0.3c) - by A7X_CEEJAY - 24.08.2011, 19:52
Re: CopTools (0.3c) - by legodude - 24.08.2011, 21:30
Re: CopTools (0.3c) - by A7X_CEEJAY - 25.08.2011, 10:50
Re: CopTools (0.3c) - by GTA-Roleplay - 15.09.2011, 12:20
Re: CopTools (0.3c) - by jaami - 26.04.2012, 13:32
Re: CopTools (0.3c) - by ikkentim - 26.04.2012, 19:08

Forum Jump:


Users browsing this thread: 1 Guest(s)