What's new

Solved Trolled Players Function ?

  • Thread starter Toxiic Modz
  • Start date
  • Views 144
T

Toxiic Modz

Enthusiast
Messages
131
Reaction score
131
Hello all, I'm working in a modloadeur/menu but my HDD of my x360Key is break and I can't test my function.

Can you test this for me please ?

Code:
add_toggle("Troll Vehicle",trollplayer);

Code:
if(trollplayer){
uint index;
if(DOES_CHAR_EXIST(players[index].ped)){
if(IS_CHAR_IN_ANY_CAR(players[index].ped)){
int pveh,nvid,tick;
GET_CAR_CHAR_IS_USING(players[index].ped,&pveh);
GET_NETWORK_ID_FROM_VEHICLE(pveh,&nvid);
REQUEST_CONTROL_OF_NETWORK_ID(nvid);
while(!HAS_CONTROL_OF_NETWORK_ID(nvid)){
tick++;
REQUEST_CONTROL_OF_NETWORK_ID(nvid);
if(tick >= 200){
print("Error");
return;
}
WAIT(0);
}
DELETE_CAR(&pveh);
MARK_CAR_AS_NO_LONGER_NEEDED(&pveh);
}
}
}

Code:
if(item_select == xx){
if(!trollplayer){
print("Trolled player Enabled");
}
do_toggle(trollplayer);
return;
}

This is a function for troll a player, if he enter in a car, this car is delete.

Thanks you if you test ^^
 
Last edited:
X

XF UNKNOWN

Enthusiast
Messages
223
Reaction score
42
What is this even doing to the player?
 
T

Toxiic Modz

Enthusiast
Messages
131
Reaction score
131
The function is for the players option :smile:
If the players go in a car, the cars is automatically delete.

It's for troll players. :tongue:
 
R

Riisko Tupac

Enthusiast
Messages
527
Reaction score
268
The function is for the players option :smile:
If the players go in a car, the cars is automatically delete.

It's for troll players. :tongue:

No it's for be teleported in his car when a seat is free :/
 
T

Toxiic Modz

Enthusiast
Messages
131
Reaction score
131
I have correct this sorry, I have don't make the good code :tongue:
thank you for letting me notes. :smile:
 
Top Bottom