04.02.2013, 11:27
(
Последний раз редактировалось Akcent_Voltaj; 04.02.2013 в 11:38.
Причина: I'll Rep you if you want!
)
so if i type /fac and i'm a member at a faction then its just like clearing chat 1 by 1 its just like this.please put it in your script and test it plez help.
PHP код:
SendClientMessage(playerid, COLOR_WHITE, " ");
Quote:
if(strcmp(cmd, "/fac", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pLeader] == 1) { new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 400; car++) { if(IsACopCar(car)) if(!unwanted[car]) SetVehicleToRespawn(car); GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember] != 1 || PlayerInfo[playerid][pLeader] != 1) format(string,sizeof(string), "Liderul vostru %s a respawnat masinile al factiuni!",sendername); } } else if(PlayerInfo[playerid][pLeader] == 2) { new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 400; car++) { if(IsAFbiCar(car)) if(!unwanted[car]) SetVehicleToRespawn(car); GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember] != 2 || PlayerInfo[playerid][pLeader] != 2) format(string,sizeof(string), "Liderul vostru %s a respawnat masinile al factiuni!",sendername); } } else if(PlayerInfo[playerid][pLeader] == 3) { new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 400; car++) { if(IsANgCar(car)) if(!unwanted[car]) SetVehicleToRespawn(car); GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember] != 3 || PlayerInfo[playerid][pLeader] != 3) format(string,sizeof(string), "Liderul vostru %s a respawnat masinile al factiuni!",sendername); } } else if(PlayerInfo[playerid][pLeader] == 4) { new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 400; car++) { if(IsAFireCar(car)) if(!unwanted[car]) SetVehicleToRespawn(car); GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember] != 4 || PlayerInfo[playerid][pLeader] != 4) format(string,sizeof(string), "Liderul vostru %s a respawnat masinile al factiuni!",sendername); } } else if(PlayerInfo[playerid][pLeader] == 5) { new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 400; car++) { if(IsAGustaCar(car)) if(!unwanted[car]) SetVehicleToRespawn(car); GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember] != 5 || PlayerInfo[playerid][pLeader] != 5) format(string,sizeof(string), "Liderul vostru %s a respawnat masinile al factiuni!",sendername); } } else if(PlayerInfo[playerid][pLeader] == 6) { new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 400; car++) { if(IsAMafiaCar(car)) if(!unwanted[car]) SetVehicleToRespawn(car); GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember] != 6 || PlayerInfo[playerid][pLeader] != 6) format(string,sizeof(string), "Liderul vostru %s a respawnat masinile al factiuni!",sendername); } } else if(PlayerInfo[playerid][pLeader] == 7) { new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 400; car++) { if(IsAGovernmentCar(car)) if(!unwanted[car]) SetVehicleToRespawn(car); GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember] != 7 || PlayerInfo[playerid][pLeader] != 7) format(string,sizeof(string), "Liderul vostru %s a respawnat masinile al factiuni!",sendername); } } else if(PlayerInfo[playerid][pLeader] == { new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 400; car++) { if(IsAYepCar(car)) if(!unwanted[car]) SetVehicleToRespawn(car); if(PlayerInfo[playerid][pMember] != 8 || PlayerInfo[playerid][pLeader] != format(string,sizeof(string), "Liderul vostru %s a respawnat masinile al factiuni!",sendername); } } else if(PlayerInfo[playerid][pLeader] == 9) { new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 400; car++) { if(IsANrCar(car)) if(!unwanted[car]) SetVehicleToRespawn(car); GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember] != 9 || PlayerInfo[playerid][pLeader] != 9) format(string,sizeof(string), "Liderul vostru %s a respawnat masinile al factiuni!",sendername); } } else if(PlayerInfo[playerid][pLeader] == 10) { new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 400; car++) { if(IsATaxiCar(car)) if(!unwanted[car]) SetVehicleToRespawn(car); GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember] != 10 || PlayerInfo[playerid][pLeader] != 10) format(string,sizeof(string), "Liderul vostru %s a respawnat masinile al factiuni!",sendername); } } else if(PlayerInfo[playerid][pLeader] == 11) { new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 400; car++) { if(IsAMSCar(car)) if(!unwanted[car]) SetVehicleToRespawn(car); GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember] != 11 || PlayerInfo[playerid][pLeader] != 11) format(string,sizeof(string), "Liderul vostru %s a respawnat masinile al factiuni!",sendername); } } else if(PlayerInfo[playerid][pLeader] == 12) { new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 400; car++) { if(IsAGlenCar(car)) if(!unwanted[car]) SetVehicleToRespawn(car); GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember] != 12 || PlayerInfo[playerid][pLeader] != 12) format(string,sizeof(string), "Liderul vostru %s a respawnat masinile al factiuni!",sendername); } } else if(PlayerInfo[playerid][pLeader] == 13) { new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 400; car++) { if(IsAGangCar7(car)) if(!unwanted[car]) SetVehicleToRespawn(car); GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember] != 13 || PlayerInfo[playerid][pLeader] != 13) format(string,sizeof(string), "Liderul vostru %s a respawnat masinile al factiuni!",sendername); } } else if(PlayerInfo[playerid][pLeader] == 14) { new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 400; car++) { if(IsANapCar(car)) if(!unwanted[car]) SetVehicleToRespawn(car); GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember] != 14 || PlayerInfo[playerid][pLeader] != 14) format(string,sizeof(string), "Liderul vostru %s a respawnat masinile al factiuni!",sendername); } } else if(PlayerInfo[playerid][pLeader] == 15) { new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 400; car++) { if(IsATowCar(car)) if(!unwanted[car]) SetVehicleToRespawn(car); if(PlayerInfo[playerid][pMember] != 15 || PlayerInfo[playerid][pLeader] != 15) format(string,sizeof(string), "Liderul vostru %s a respawnat masinile al factiuni!",sendername); } } else if(PlayerInfo[playerid][pLeader] == 16) { new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 400; car++) { if(IsATigaCar(car)) if(!unwanted[car]) SetVehicleToRespawn(car); GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember] != 16 || PlayerInfo[playerid][pLeader] != 16) format(string,sizeof(string), "Liderul vostru %s a respawnat masinile al factiuni!",sendername); } } SendFamilyMessage(PlayerInfo[playerid][pLeader], COLOR_LIGHTBLUE, string); return 1; } return 1; } |