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 ?
This is a function for troll a player, if he enter in a car, this car is delete.
Thanks you if you test ^^
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: