Raised This Month: $ Target: $400
 0% 

Working on TSRP Plugin (Jail Mod)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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