28.01.2013, 21:53
I'm Currently using A fking awesome script .
But a problem has showd up since some moran tried to fix /sellprods.
Once you enter a bizz and exit it you fall down across blueberry
Please check this and help me to fix it
But a problem has showd up since some moran tried to fix /sellprods.
Once you enter a bizz and exit it you fall down across blueberry
Please check this and help me to fix it
PHP код:
if(strcmp(cmd, "/sellprods", true) == 0)
{
new cashmade;
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pTruckLoad] == 0)
{
GameTextForPlayer(playerid, "~r~Truck is empty, return to the stock house", 5000, 1);
format(string, sizeof(string), "Products: %d.", PlayerInfo[playerid][pTruckLoad]);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
return 1;
}
for(new i = 0; i < sizeof(BizzInfo); i++)
{
if (IsPlayerInRangeOfPoint(playerid, 10,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
{
{
if(BizzInfo[i][bProducts] < BizzInfo[i][bMaxProducts])
{
if(BizzInfo[i][bPriceProd] < BizzInfo[i][bTill])
{
if(PlayerInfo[playerid][pTruckLoad] >= 1)
{
PlayerInfo[playerid][pTruckLoad] = 0;
BizzInfo[i][bProducts]++;
cashmade = cashmade+BizzInfo[i][bPriceProd];
ConsumingMoney[playerid] = 1;
SafeGivePlayerMoney(playerid,cashmade*4);
BizzInfo[i][bTill] -= BizzInfo[i][bPriceProd];
format(string, sizeof(string), "Cash Earned $%d.", cashmade*4);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), "Products: %d.", PlayerInfo[playerid][pTruckLoad]);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
}
else
{
GameTextForPlayer(playerid, "~r~Truck is empty, return to the stock house", 5000, 1);
format(string, sizeof(string), "Products: %d.", PlayerInfo[playerid][pTruckLoad]);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
return 1;
}
}
}
else
{
GameTextForPlayer(playerid, "~r~Our stores are full", 5000, 1);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
return 1;
}
}
OnPropUpdate(3,i);
return 1;
}
}
}
for(new i = 0; i < sizeof(SBizzInfo); i++)
{
if (IsPlayerInRangeOfPoint(playerid, 10,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ]))
{
//printf("Found House :%d",i);
{
if(SBizzInfo[i][sbProducts] < SBizzInfo[i][sbMaxProducts])
{
if(PlayerInfo[playerid][pTruckLoad] == 1)
{
PlayerInfo[playerid][pTruckLoad]--;
SBizzInfo[i][sbProducts]++;
cashmade = cashmade+SBizzInfo[i][sbPriceProd];
ConsumingMoney[playerid] = 1;
SafeGivePlayerMoney(playerid,SBizzInfo[i][sbPriceProd]);
SBizzInfo[i][sbTill] -= SBizzInfo[i][sbPriceProd];
}
else
{
GameTextForPlayer(playerid, "~r~Truck is empty, return to the stock house", 5000, 1);
format(string, sizeof(string), "Cash Earned $%d.", cashmade);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), "Products: %d.", PlayerInfo[playerid][pTruckLoad]);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
return 1;
}
}
else
{
GameTextForPlayer(playerid, "~r~Our stores are full", 5000, 1);
format(string, sizeof(string), "Cash Earned $%d.", cashmade);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), "Products: %d.", PlayerInfo[playerid][pTruckLoad]);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
return 1;
}
}
OnPropUpdate(3,i);
return 1;
}
else
{
GameTextForPlayer(playerid, "~r~To Far From A Business", 5000, 1);
return 1;
}
}
}
PHP код:
if(strcmp(cmd, "/enter", true) == 0)
{
OnPlayerUpdateEx(playerid)
if(PlayerInfo[playerid][pMaskuse] == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(i, playerid, 0);
}
}
}
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (IsPlayerInRangeOfPoint(playerid, 10,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
{
//printf("Found House :%d",i);
if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
{
SafeSetPlayerInterior(playerid,HouseInfo[i][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[i][hWorld]);
SafeSetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1);
PlayerInfo[playerid][pLocal] = i;
PlayerInfo[playerid][pVirWorld] = HouseInfo[i][hWorld];
HouseEntered[playerid] = i;
PlayerInfo[playerid][pInteriorNr] = 39;
GameTextForPlayer(playerid,"~r~Loading Objects!",4000,4);
SetTimerEx("Unfreezeply",3000,false,"i",playerid);
TogglePlayerControllable(playerid, 0);
}
else
{
GameTextForPlayer(playerid, "~r~Locked", 5000, 1);
return 1;
}
}
}
for(new i = 0; i < sizeof(BizzInfo); i++)
{
if (IsPlayerInRangeOfPoint(playerid, 5,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
{
if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= BizzInfo[i][bEntranceCost])
{
if(PlayerInfo[playerid][pPbiskey] != i)
{
if(BizzInfo[i][bLocked] == 1)
{
GameTextForPlayer(playerid, "~r~Closed", 5000, 1);
return 1;
}
if(BizzInfo[i][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
SafeGivePlayerMoney(playerid,-BizzInfo[i][bEntranceCost]);
format(string, sizeof(string), "~r~-$%d~n~~w~type /exit~n~to get out", BizzInfo[i][bEntranceCost]);
BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost];
ExtortionBiz(i, BizzInfo[i][bEntranceCost]);
BizzInfo[i][bProducts]--;
OnPropUpdate(2,i);
GameTextForPlayer(playerid, string, 5000, 3);
}
PlayerInfo[playerid][pInteriorNr] = BizzInfo[i][bInteriorNr];
SetPlayerVirtualWorld(playerid,BizzInfo[i][bVirWorld]);
SafeSetPlayerInterior(playerid,BizzInfo[i][bInterior]);
SafeSetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
GameTextForPlayer(playerid,"~r~Loading Objects!",4000,4);
SetTimerEx("Unfreezeply",3000,false,"i",playerid);
TogglePlayerControllable(playerid, 0);
new dood[MAX_PLAYER_NAME];
GetPlayerName(playerid, dood, sizeof(dood));
BizzEntered[playerid] = i;
new h,mi,s,y,m,d;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s payed $%d to enter biz %d",d,m,y,h,mi,s, dood, BizzInfo[i][bEntranceCost], i);
printf("%s", string);
PayLog(string);
if(BizzInfo[i][bVirWorld] == 0 || BizzInfo[i][bVirWorld] == 1)
{
OnPlayerEnterFood(playerid, 1);
}
else if(BizzInfo[i][bVirWorld] == 2 || BizzInfo[i][bVirWorld] == 3)
{
OnPlayerEnterFood(playerid, 2);
}
else if(BizzInfo[i][bVirWorld] == 4 || BizzInfo[i][bVirWorld] == 5)
{
OnPlayerEnterFood(playerid, 3);
}
else if(BizzInfo[i][bVirWorld] == 6)
{
OnPlayerEnterFood(playerid, 4);
}
}
else
{
GameTextForPlayer(playerid, "~r~You dont have the cash", 5000, 1);
}
}
}
for(new i = 0; i < sizeof(SBizzInfo); i++)
{
if (IsPlayerInRangeOfPoint(playerid, 3,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ]))
{
if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= SBizzInfo[i][sbEntranceCost])
{
if(PlayerInfo[playerid][pPbiskey] != i)
{
if(SBizzInfo[i][sbLocked] == 1)
{
GameTextForPlayer(playerid, "~r~Closed", 5000, 1);
return 1;
}
if(SBizzInfo[i][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
SafeGivePlayerMoney(playerid,-SBizzInfo[i][sbEntranceCost]);
gSpentCash[playerid] = GetPlayerMoney(playerid);
SBizzInfo[i][sbProducts]--;
SBizzInfo[i][sbTill] += SBizzInfo[i][sbEntranceCost];
ExtortionSBiz(i, SBizzInfo[i][sbEntranceCost]);
new dood[MAX_PLAYER_NAME];
GetPlayerName(playerid, dood, sizeof(dood));
format(string, sizeof(string), "%s payed $%d to enter sbiz %d", dood, SBizzInfo[i][sbEntranceCost], i);
printf("%s", string);
PayLog(string);
OnPropUpdate(3,i);
}
}
else
{
GameTextForPlayer(playerid, "~r~You dont have the cash", 5000, 1);
}
}
}
if (IsPlayerInRangeOfPoint(playerid, 3,2695.6235,-1704.6960,11.8438))
{
GameTextForPlayer(playerid, "~w~Welcome to the 8ball Track", 5000, 1);
SafeSetPlayerInterior(playerid,7);
SafeSetPlayerPos(playerid,-1404.5299,-259.0602,1043.6563);
GameTextForPlayer(playerid,"~r~Loading Objects!",4000,4);
SetTimerEx("Unfreezeply",3000,false,"i",playerid);
TogglePlayerControllable(playerid, 0);
}
else if (IsPlayerInRangeOfPoint(playerid, 8,-2111.5686,-443.9720,38.7344))
{
GameTextForPlayer(playerid, "~w~Welcome to the Dirt Track", 5000, 1);
SafeSetPlayerInterior(playerid,4);
SafeSetPlayerPos(playerid,-1443.0554,-581.1879,1055.0472);
GameTextForPlayer(playerid,"~r~Loading Objects!",4000,4);
SetTimerEx("Unfreezeply",3000,false,"i",playerid);
TogglePlayerControllable(playerid, 0);
}
else if (IsPlayerInRangeOfPoint(playerid, 3,-2080.3079,-406.0309,38.7344))
{
GameTextForPlayer(playerid, "~w~Welcome to the Stunting Track", 5000, 1);
SafeSetPlayerInterior(playerid,14);
SafeSetPlayerPos(playerid,-1464.7732,1557.5533,1052.5313);
GameTextForPlayer(playerid,"~r~Loading Objects!",4000,4);
SetTimerEx("Unfreezeply",3000,false,"i",playerid);
TogglePlayerControllable(playerid, 0);
}
if (IsPlayerInRangeOfPoint(playerid,10,1099.3762,1601.5387,12.5469))
{
if (GetPlayerState(playerid) == 2)
{
if (PlayerInfo[playerid][pDTK] == 0 && PlayerInfo[playerid][pDM] == 0 && PlayerInfo[playerid][pAdmin] <= 2)
{
SendClientMessage(playerid,COLOR_NICERED,"You do not have a DD Ticket!");
format(string, sizeof(string), "[ADMIN]: %s Tried to Enter to the DDS Without a Ticket!", sendername);
ABroadCast(COLOR_LIGHTRED,string, 5);
return 1;
}
new tmpcar = GetPlayerVehicleID(playerid);
new vehicleid = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -1437.1271,990.9039,1030.5000);
PlayerInfo[playerid][pDTK] = 0;
SafeSetPlayerInterior(playerid, 15);
GameTextForPlayer(playerid,"~r~Loading Objects!",4000,4);
SetTimerEx("Unfreezeply",3000,false,"i",playerid);
TogglePlayerControllable(playerid, 0);
LinkVehicleToInterior(vehicleid, 15);
PlayerInfo[playerid][pInteriorNr] = 25;
GameTextForPlayer(playerid,"~p~European Style Roleplay ~n~~r~Destruction Derby Stadium", 5000,1)
SendClientMessage(playerid, COLOR_NICERED, "Welcome to the European Style Roleplay Destruction Derby Stadium (DD)");
SendClientMessage(playerid, TEAM_VAGOS_COLOR, "----------------------------------DD Main Rules---------------------------------------");
SendClientMessage(playerid, TEAM_GROVE_COLOR, "Ram Someone Before the Admin Does a countdown is equal to two hours Jail");
SendClientMessage(playerid, TEAM_GROVE_COLOR, "The Center Square means Hosters Area");
SendClientMessage(playerid, TEAM_GROVE_COLOR, "If you do not host the DD, You are not Allowed to Get to the Hoster Area");
SendClientMessage(playerid, TEAM_GROVE_COLOR, "Getting into the Hoster Area without beginning a Hoster is equal to 30 Minutes Jail");
SendClientMessage(playerid, TEAM_VAGOS_COLOR, "----------------------------------Driver Rules----------------------------------------");
SendClientMessage(playerid, TEAM_GROVE_COLOR, "Get to the Corners of the Stadium and Wait for The Admin Voice!");
SendClientMessage(playerid, TEAM_GROVE_COLOR, "The Last One That remains without getting destroyed Wins");
}
else
{
if (PlayerInfo[playerid][pDSTK] == 0 && PlayerInfo[playerid][pDM] == 0 && PlayerInfo[playerid][pAdmin] <= 2)
{
SendClientMessage(playerid,COLOR_NICERED,"You do not have a DD (S) Ticket!");
format(string, sizeof(string), "[ADMIN]: %s Tried to Enter to the DD (S) Without a Ticket!", sendername);
ABroadCast(COLOR_LIGHTRED,string, 5);
return 1;
}
GameTextForPlayer(playerid, "~p~European Style Roleplay ~n~~r~~h~Destruction Derby Stadium ~n~~g~Las Venturas", 5000, 1);
SafeSetPlayerInterior(playerid, 15);
SafeSetPlayerPos(playerid,-1390.0785,930.2457,1041.5313);
GameTextForPlayer(playerid,"~r~Loading Objects!",4000,4);
SetTimerEx("Unfreezeply",3000,false,"i",playerid);
TogglePlayerControllable(playerid, 0);
PlayerInfo[playerid][pDSTK] = 0;
PlayerInfo[playerid][pInteriorNr] = 25;
SendClientMessage(playerid, COLOR_NICERED, "Welcome to the European Style Roleplay Destruction Derby Stadium (DD)");
SendClientMessage(playerid, TEAM_VAGOS_COLOR, "------------------------------------DD Main Rules------------------------------------");
SendClientMessage(playerid, TEAM_GROVE_COLOR, "Ram Someone Before the Manager Does a countdown is equal to two hours Jail");
SendClientMessage(playerid, TEAM_GROVE_COLOR, "The Center Square means Hosters Area");
SendClientMessage(playerid, TEAM_GROVE_COLOR, "If you do not host the DD, You are not Allowed to Get to the Hoster Area");
SendClientMessage(playerid, TEAM_GROVE_COLOR, "Getting into the Hoster Area without beginning a Hoster is equal to 30 Minutes Jail");
SendClientMessage(playerid, TEAM_VAGOS_COLOR, "----------------------------------Spectator Rules------------------------------------");
SendClientMessage(playerid, TEAM_GROVE_COLOR, "Remain at the Spectators Area And Have Fun!");
SendClientMessage(playerid, TEAM_GROVE_COLOR, "Do not Attack ANYONE At the Spectators Area");
SendClientMessage(playerid, TEAM_GROVE_COLOR, "Attacking Someone or Entering inside of the stadium is equal 30 Minutes Jail.");
}
}
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /enter",d,m,y,h,mi,s,sendername);
CommandLog(string);
return 1;
}
if(strcmp(cmd, "/exit", true) == 0)
{
OnPlayerUpdateEx(playerid);
if(PlayerInfo[playerid][pMaskuse] == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(i, playerid, 0);
}
}
}
if(IsPlayerConnected(playerid))
{
if(HouseEntered[playerid] != 9999)
{
new i = HouseEntered[playerid];
if (IsPlayerInRangeOfPoint(playerid, 3,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
{
SetPlayerInterior(playerid,0);
SafeSetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]+3);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pVirWorld] = 0;
HouseEntered[playerid] = 9999;
if(HouseInfo[i][hHel] == 1)
{
new Float:tempheal;
GetPlayerHealth(playerid,tempheal);
if(tempheal < 100.0)
{
SetPlayerHealth(playerid,100.0);
}
}
return 1;
}
}
if(BizzEntered[playerid] != 9999)
{
new i = BizzEntered[playerid];
if (IsPlayerInRangeOfPoint(playerid, 3,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid, 0);
OnPlayerExitFood(playerid);
SetPlayerPos(playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]);
SetPlayerVirtualWorld(playerid, 0);
BizzEntered[playerid] = 9999;
}
}
new carid = GetPlayerVehicleID(playerid);
if (IsABus(carid))
{
TogglePlayerControllable(playerid, 1);
SafeRemovePlayerFromVehicle(playerid);
if (BusrouteEast[playerid][0] != 0 || BusrouteWest[playerid][0] != 0) BusrouteEnd(playerid, carid);
}
if (IsASweeper(carid))
{
TogglePlayerControllable(playerid, 1);
SafeRemovePlayerFromVehicle(playerid);
}
if(IsAHarvest(carid))
{
if (carid != 0)
{
SetVehicleToRespawn(carid);
}
if(FarmerPickup[playerid][0] >= 1 && FarmerPickup[playerid][0] <= 22)
{
FarmerPickup[playerid][0]--;
}
TogglePlayerControllable(playerid, 1);
SafeRemovePlayerFromVehicle(playerid);
FarmerVar[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
if(IsADrugHarvest(carid))
{
if(DrugFarmerPickup[playerid][0] >= 1 && DrugFarmerPickup[playerid][0] <= 37)
{
DrugFarmerPickup[playerid][0]--;
}
TogglePlayerControllable(playerid, 1);
SafeRemovePlayerFromVehicle(playerid);
DrugFarmerVar[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
if(IsASmuggleCar(carid))
{
TogglePlayerControllable(playerid, 1);
SafeRemovePlayerFromVehicle(playerid);
SmugglerWork[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
if(Decoding[playerid] == 1)
{
Decoding[playerid] = 0;
SafeRemovePlayerFromVehicle(playerid);
KillTimer(DecoderTimer);
HideDecoder(playerid);
SendClientMessage(playerid, COLOR_NICERED, "You left the car, decoder stopped!");
decodecode = 0;
Decoder = 0;
}
if(IsAnOwnableCar(carid) && CarInfo[carid][cOwned] == 0)
{
TogglePlayerControllable(playerid, 1);
SafeRemovePlayerFromVehicle(playerid);
}
if(IsPlayerInAnyVehicle(playerid) && !engineOn[GetPlayerVehicleID(playerid)] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
TogglePlayerControllable(playerid, 1);
SafeRemovePlayerFromVehicle(playerid);
}
if(GetPlayerVehicleID(playerid) >= 112 && GetPlayerVehicleID(playerid) <= 130 || GetPlayerVehicleID(playerid) >= 135 && GetPlayerVehicleID(playerid) <= 154)
{
TogglePlayerControllable(playerid, 1);
SafeRemovePlayerFromVehicle(playerid);
}
else if (IsPlayerInRangeOfPoint(playerid, 3,387.7978,173.8582,1008.3828))
{
SafeSetPlayerInterior(playerid,0);
SafeSetPlayerPos(playerid,1481.0206,-1771.1138,18.7958);
PlayerInfo[playerid][pLocal] = 255;
}
else if (IsPlayerInRangeOfPoint(playerid, 6,-1404.5299,-259.0602,1043.6563))
{
SafeSetPlayerInterior(playerid,0);
SafeSetPlayerPos(playerid,2695.6235,-1704.6960,11.8438);
}
else if (IsPlayerInRangeOfPoint(playerid, 8,-1443.0554,-581.1879,1055.0472))
{
SafeSetPlayerInterior(playerid,0);
SafeSetPlayerPos(playerid,-2111.5686,-443.9720,38.7344);
}
else if (IsPlayerInRangeOfPoint(playerid, 8,-1464.7732,1557.5533,1052.5313))
{
SafeSetPlayerInterior(playerid,0);
SafeSetPlayerPos(playerid,-2080.3079,-406.0309,38.7344);
}
else if(NoFuel[playerid] == 1)
{
TogglePlayerControllable(playerid, 1);
SafeRemovePlayerFromVehicle(playerid);
NoFuel[playerid] = 0;
}
else if(IsPlayerInRangeOfPoint(playerid, 10, 1817.97,-1536.64,13.45))
{//Jail Exit By Tyler Acres
if(PlayerInfo[playerid][pDuty] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
{
if(IsPlayerInAnyVehicle(playerid) && GetPlayerVehicleSeat(playerid) == 0)
{
new vid = GetPlayerVehicleID(playerid);
SetVehiclePos(vid,1817.97,-1536.64,13.45);
LinkVehicleToInterior(vid,0);
PutPlayerInVehicle(playerid,vid,0);
}
else
{
GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
SafeSetPlayerInterior(playerid, 0);
SafeSetPlayerPos(playerid,1826.36,-1537.21,13.64);
}
}
else return SendClientMessage(playerid, COLOR_GREY,"* You are not a Guard/Police!")
}
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /exit",d,m,y,h,mi,s,sendername);
CommandLog(string);
return 1;
}