SA-MP Forums Archive
asking about crazybob's CnR - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: asking about crazybob's CnR (/showthread.php?tid=90613)



asking about crazybob's CnR - speed337 - 09.08.2009

when i played crazybob's server the cop has arrested suspect...

then the suspect has freezed and handup animation with gametext...

how do i do that like this


Re: asking about crazybob's CnR - Zeromanster - 09.08.2009

To freeze the player use:

pawn Код:
TogglePlayerControllable(playerid,toggle);
To make him do a hadnsup animation use:

pawn Код:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
And to show him some text use:

pawn Код:
GameTextForPlayer(playerid, const string[],time,style);



Re: asking about crazybob's CnR - Joe Staff - 09.08.2009

You won't need to freeze if you use the animation. If you do freeze the player they will become invulnerable.


Re: asking about crazybob's CnR - speed337 - 09.08.2009

Quote:
Originally Posted by Zeromanster
To freeze the player use:

pawn Код:
TogglePlayerControllable(playerid,toggle);
To make him do a hadnsup animation use:

pawn Код:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
And to show him some text use:

pawn Код:
GameTextForPlayer(playerid, const string[],time,style);
and.....where should i put the codes..??

p.s i'm using lvrcr


Re: asking about crazybob's CnR - speed337 - 09.08.2009

and.....where should i put the codes..??

i want it to when cop using /arrest then cops has animation like pointing gun in suspect

and suspect is freezing with animation handsup.... than suspect is move to jail...




in lvrcr is cop has arrest suspect then suspect is move to jail.....so... boring..





Re: asking about crazybob's CnR - Geekzor - 10.08.2009

Quote:
Originally Posted by speed337
and.....where should i put the codes..??

i want it to when cop using /arrest then cops has animation like pointing gun in suspect

and suspect is freezing with animation handsup.... than suspect is move to jail...




in lvrcr is cop has arrest suspect then suspect is move to jail.....so... boring..


lol in thius post u tell the answer ... i think u must put it under /arrest command ...


Re: asking about crazybob's CnR - speed337 - 11.08.2009

Quote:
Originally Posted by Geekzor
Quote:
Originally Posted by speed337
and.....where should i put the codes..??

i want it to when cop using /arrest then cops has animation like pointing gun in suspect

and suspect is freezing with animation handsup.... than suspect is move to jail...




in lvrcr is cop has arrest suspect then suspect is move to jail.....so... boring..


lol in thius post u tell the answer ... i think u must put it under /arrest command ...
sorry... i'm new here


Re: asking about crazybob's CnR - speed337 - 12.08.2009

Quote:
Originally Posted by Zeromanster
To freeze the player use:

pawn Код:
TogglePlayerControllable(playerid,toggle);
To make him do a hadnsup animation use:

pawn Код:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
And to show him some text use:

pawn Код:
GameTextForPlayer(playerid, const string[],time,style);
i think it's my mistake....

when cop has using /ar cops is doing handsup.. and robber is just nothing motion...

just teleport the jail..........

what is wrong with me?

i'm using weed's lvrcr


Re: asking about crazybob's CnR - Dominicz - 05.11.2009

well its kind of a let down if i made arrest it would be hit a player with a baton when there hp is blinking they get arrested then so it would be more fair for both sides so mostly will just have to kill each other.


Re: asking about crazybob's CnR - Lajko1 - 05.11.2009

this is my test /ar command i will better it later but you can figure out

Код:
if ((strcmp("/ar", cmd, true) == 0) || (strcmp(cmd, "/arrest", true) == 0))
	{
	new tmp[256];
	tmp = strtok(cmdtext, idx);
	
	new playername[MAX_PLAYER_NAME];
	GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
	
	giveplayerid = strval(tmp);

	if(!strlen(tmp)) {
	SendClientMessage(playerid,0xFF0000AA, "USAGE: /Ar [Playerid] / [Player Name]");
	return 1;
	}
	if(!IsPlayerConnected(giveplayerid))
	{
	SendClientMessage(playerid,0xFF0000AA,"ERROR: Invaild ID!");
	return 1;
	}
	if(GetPlayerWantedLevel(playerid) >= 4)
	{
	format(string, sizeof(string), "You Have Been Arrested by Officer %s[%d]!",playername,playerid);
	SendClientMessage(giveplayerid,0x33CCFFAA,string);
	
	format(string, sizeof(string), "~r~BUSTED!");
	GameTextForPlayer(giveplayerid,string,3000,5);
	
	format(string, sizeof(string), "You Arrested %s[%d], You Get $2500!",playername,giveplayerid);
	SendClientMessage(playerid,0x33CCFFAA,string);
	
	format(string, sizeof(string), "Suspect %s[%d] Has Been Arrested By Officer %s[%d].",playername,giveplayerid,playername,playerid);
	SendClientMessageToAll(0x33CCFFAA,string);
	
	format(string, sizeof(string), "~b~WELL DONE!");
	GameTextForPlayer(playerid,string,3000,5);
	
	GivePlayerMoney(playerid,2500);
	SetPlayerScore(playerid,1);
	
	SetPlayerSpecialAction(giveplayerid,SPECIAL_ACTION_HANDSUP);
	ResetPlayerWeapons(giveplayerid);
	}
	return 1;
	}
	return 0;
}
it wors GREAT but i need to fic to give player socre and some other things