login
March 29, 2024, 03:36:41 pm

Author Topic: [PAWN]Jail cmd = problems  (Read 1796 times)

0 Members and 1 Guest are viewing this topic.

Zeke

  • Crazy Man
  • *****
  • Posts: 935
  • Country: bg
  • VC:MP and LU beta tester
    • View Profile
[PAWN]Jail cmd = problems
« on: August 17, 2011, 07:06:58 am »
So a fr of myne gave me a jail script like in argo but its a little diferent so the problem is wen a suspect surenders and im a cop and i want to jail him and we both go the the cells in the jail and i type /c jail [NAME/ID]
it only jails ID 0 idk why i tryed to edit it and make it plr instead of playerID in the script
but no shit anyways here is the script
http://pastebin.com/t9EUu4sg
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Quote
InstallHook(0x405AC0,(DWORD)CantFindFuckingAnim,0x405A95,
CantFindFuckingAnim_HookJmpCode,sizeof(CantFindFuckingAnim_HookJmpCode));
-------------------------------------------------
Quote
[00:41:12] <~Murdock> actually just transfering files
[00:41:16] <~Murdock> sounds, clientscripts etc
[00:42:05] <heekzs> what transfer method you uses
[00:43:03] <~Murdock> speed of light

Charley

  • Vice Underdog
  • Crazy Man
  • *
  • *
  • Posts: 4749
  • Country: 00
    • View Profile
Re: [PAWN]Jail cmd = problems
« Reply #1 on: August 17, 2011, 09:14:17 am »
It seems you have a couple of custom functions in there, like FindPlayerIDFromString and PlayerToPoint. It might be useful to post those too, so we can see what they're doing.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Writer of excessively long posts


Thijn

  • Forum Administrator
  • Crazy Man
  • *
  • *
  • *
  • Posts: 2946
  • Country: nl
    • View Profile
Re: [PAWN]Jail cmd = problems
« Reply #2 on: August 17, 2011, 09:19:30 am »
I think the error is in FindPlayerIDFromString, That returns 0 then I guess.
The rest seems fine (Even tho I don't know a lot from pawn)
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

I'm not totally useless,
I can be used as an bad example ;)

"Never do Today, What you can do Tomorrow"


Zeke

  • Crazy Man
  • *****
  • Posts: 935
  • Country: bg
  • VC:MP and LU beta tester
    • View Profile
Re: [PAWN]Jail cmd = problems
« Reply #3 on: August 17, 2011, 09:42:26 am »
So about PlayerToPoint well it determens the radius for a place like example i set coords for the bank just infront of the safe and wen i add a radius like example 5 if the player aint in radius or in the exact place of the coords it will give a message example "You need to be at the bank infront of the safe" you can edit this crapy message to whatever u want. PlayerToPoint is like the radius in the cmd /c l "local message" if player not in radius he cant see the message.

Here is the script for PlayerToPoint " its added at the botom"

http://pastebin.com/yeiv5j0h

Here is the example cmd "/c l"
http://pastebin.com/0ECyfhWa

And about FindPlayerIDFromString idk shit about it  ;D


EDIT::::
Fixed guys Yazeen made a new script for me and it works now
« Last Edit: August 17, 2011, 03:54:15 pm by Zeke »
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Quote
InstallHook(0x405AC0,(DWORD)CantFindFuckingAnim,0x405A95,
CantFindFuckingAnim_HookJmpCode,sizeof(CantFindFuckingAnim_HookJmpCode));
-------------------------------------------------
Quote
[00:41:12] <~Murdock> actually just transfering files
[00:41:16] <~Murdock> sounds, clientscripts etc
[00:42:05] <heekzs> what transfer method you uses
[00:43:03] <~Murdock> speed of light