Vice Underdogs
Scripting => Scripting Support => Topic started by: Zeke 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
-
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.
-
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)
-
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