hi, hab mal was gebastelt aber es geht nicht
HIER:
#include <a_samp>
#include <colors>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#define Fahrer 0
#define Nichtfahrer 2
new Imauto[MAX_PLAYERS];
new Welchesauto[MAX_PLAYERS];
new an[MAX_PLAYERS];
public OnFilterScriptInit() {//
print("\n***********************************************************");
print(" Antifall by [PRT]The_Gamer has been loadet *");
print("*************************************************************\n");
return 1;}
#include <colors>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#define Fahrer 0
#define Nichtfahrer 2
new Imauto[MAX_PLAYERS];
new Welchesauto[MAX_PLAYERS];
new an[MAX_PLAYERS];
public OnFilterScriptInit() {//
print("\n***********************************************************");
print(" Antifall by [PRT]The_Gamer has been loadet *");
print("*************************************************************\n");
return 1;}
#endif
public OnPlayerExitVehicle(playerid,vehicleid){
Imauto[playerid] = 0;
return 1;}
public OnPlayerExitVehicle(playerid,vehicleid){
Imauto[playerid] = 0;
return 1;}
public OnPlayerCommandText(playerid,cmdtext[]) {
if(strcmp(cmdtext,"/antifall an",true) == 0){
Imauto[playerid]=1;
SendClientMessage(playerid, COLOR_GREEN, "Antifall ist an.");
return 1;}
if(strcmp(cmdtext,"/antifall aus",true) == 0){
Imauto[playerid]=0;
SendClientMessage(playerid, COLOR_GREEN, "Antifall ist aus.");
return 1;}
return 0;}
if(strcmp(cmdtext,"/antifall an",true) == 0){
Imauto[playerid]=1;
SendClientMessage(playerid, COLOR_GREEN, "Antifall ist an.");
return 1;}
if(strcmp(cmdtext,"/antifall aus",true) == 0){
Imauto[playerid]=0;
SendClientMessage(playerid, COLOR_GREEN, "Antifall ist aus.");
return 1;}
return 0;}
public OnPlayerStateChange(playerid, newstate, oldstate){
if(oldstate == PLAYER_STATE_DRIVER){
if(newstate == PLAYER_STATE_ONFOOT){
if(Imauto[playerid] == 1){
PutPlayerInVehicle(playerid, Welchesauto[playerid], Fahrer);}}}
if(oldstate == PLAYER_STATE_PASSENGER){
if(newstate == PLAYER_STATE_ONFOOT){
if(Imauto[playerid] == 1){
PutPlayerInVehicle(playerid, Welchesauto[playerid], Nichtfahrer);}}}
if(oldstate == PLAYER_STATE_ONFOOT){
if(newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER){
if(an[playerid] == 1){
Welchesauto[playerid] = GetPlayerVehicleID(playerid);}
}else{
return 1;}}
return 1;}
if(oldstate == PLAYER_STATE_DRIVER){
if(newstate == PLAYER_STATE_ONFOOT){
if(Imauto[playerid] == 1){
PutPlayerInVehicle(playerid, Welchesauto[playerid], Fahrer);}}}
if(oldstate == PLAYER_STATE_PASSENGER){
if(newstate == PLAYER_STATE_ONFOOT){
if(Imauto[playerid] == 1){
PutPlayerInVehicle(playerid, Welchesauto[playerid], Nichtfahrer);}}}
if(oldstate == PLAYER_STATE_ONFOOT){
if(newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER){
if(an[playerid] == 1){
Welchesauto[playerid] = GetPlayerVehicleID(playerid);}
}else{
return 1;}}
return 1;}
Keine Errors, nur wenn man an oder aus macht ist kein Antifall
//Edit: Weiß niemand was?