Raised This Month: $ Target: $400
 0% 

Working on TSRP Plugin (Jail Mod)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[cTs] Strake*ROC*
Member
Join Date: Mar 2004
Old 04-03-2005 , 00:26   Working on TSRP Plugin (Jail Mod)
Reply With Quote #1

I'm trying to make it so when you arrest somebody and they disconnect and reconnect, then it makes them go to jail on connect, untill they are unarrested, here is what i have so far... but i keep getting error
Code:
error 035: argument type mismatch (argument 2)
Here is Code
Code:
/* AMX Mod X script. * * (c) 2004, Strake * This file is provided as is (no warranties). */  #include <amxmodx>  #include <amxmisc>  #include <fakemeta>  #include <engine>  #include <vault>  #include <fun>  #include <tsx> new isusercuffed[33] = 0; public plugin_init(){     register_plugin("Jail Disconnect","1.0","Strake")     register_clcmd("say", "handle_say") } public handle_say(id) { new command[101]; read_argv(1, command, 100); if(equali(command,"/cuff") == 1) {     new player     new body     get_user_aiming(id,player,body,9999);         isusercuffed[player] = 1;     } if (equali(command,"/uncuff") == 1) {     new player     new body     get_user_aiming(id,player,body,9999);         isusercuffed[player] = 0; }   } public client_connect(id) { if (isusercuffed[id] == 1) {     set_user_origin(id, ( -2705, 2206, -348 )); } }

The Line with the error is
Code:
    set_user_origin(id, ( -2705, 2206, -348 ));

I dont understand what wrong with it, i've tried making it a variable, but gives same message...
__________________
[cTs] Strake*ROC* is offline
[cTs] Strake*ROC*
Member
Join Date: Mar 2004
Old 04-03-2005 , 00:27  
Reply With Quote #2

Wow, never mind, solved it, just had to change () to {}

makes no sense to me (cuz i thought it would be ())
but it works... :-D Sorry for the spam... Admins: Feel free to delete!
__________________
[cTs] Strake*ROC* is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-03-2005 , 12:11  
Reply With Quote #3

http://forums.alliedmods.net/showthread.php?t=5037

Try looking up TSXMOD. It has a phone mod built into the talkarea, and then an addon which adds a dialing sequence and telephone numbers.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
[cTs] Strake*ROC*
Member
Join Date: Mar 2004
Old 04-03-2005 , 12:25  
Reply With Quote #4

Cool, i've been looking for that one, but never could get it to work.... i'll try again... thanks man!

BTW:
This is my Jail Mod thread, my Phone Mod thread is down a bit :-D Oh well, all the same :-D
__________________
[cTs] Strake*ROC* is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-03-2005 , 12:30  
Reply With Quote #5

I'm a girl, and no problem.

It needs a few modules I developed. I really should finish INV mod instead of working on new modules but...eh.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
[cTs] Strake*ROC*
Member
Join Date: Mar 2004
Old 04-03-2005 , 12:38  
Reply With Quote #6

Whoa!!! Your a girl??? But your 1337!!!!!
Cool! :-D

No offense but i always pictured you as a guy, i know NO girls that would EVER take up programming/scripting
__________________
[cTs] Strake*ROC* is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-03-2005 , 13:38  
Reply With Quote #7

You don't know very many girls then....
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 04-03-2005 , 13:59   haha
Reply With Quote #8

I agree with Mel. In my AP Java class in school there are more girls then guys taking the class. There are plenty of girls who enjoy programming just as much as guys.
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
Marstuno
Junior Member
Join Date: Mar 2005
Old 04-06-2005 , 21:28  
Reply With Quote #9

Quote:
Originally Posted by [cTs
Strake*ROC*]Whoa!!! Your a girl??? But your 1337!!!!!
Cool! :-D

No offense but i always pictured you as a guy, i know NO girls that would EVER take up programming/scripting
A childs misconception.

-Marstuno Matsikame
Marstuno is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode