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...
__________________