27.12.2010, 17:39
this command is somewhat, weird. when i type /v bus, it crashes the server,ym friend types /v bus, it doesnt crahs whenhe types it, crashs when i do and my other friend does. tested many times.
friend reported today, he typed /v fbi, then the server went bugged
- By Bugged I Completely Mean, The Server Makes Ppl Can't Connect. There Game Stops At Connected. Joining The Game.
And the players that were in the server - they get bugged , they cant type or anything
friend reported today, he typed /v fbi, then the server went bugged
- By Bugged I Completely Mean, The Server Makes Ppl Can't Connect. There Game Stops At Connected. Joining The Game.
And the players that were in the server - they get bugged , they cant type or anything
pawn Код:
CMD:v(playerid,params[])
{
if(PlayerInfo[playerid][AdminLevel] >= 0 || IsPlayerAdmin(playerid))
{
new vname[25];
if(sscanf(params,"s[25]",vname)) return SendClientMessage(playerid,RED,"Usage: /v [Vehiclename]");
if(aveh[playerid] != 0) DestroyVehicle(aveh[playerid]);
new Float:X,Float:Y,Float:Z,Float:ROT;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,ROT);
if(IsNumeric(vname))
{
if(!IsValidVehicle(strval(vname))) return SendClientMessage(playerid,RED,"Error:Invalid Vehicleid");
aveh[playerid] = CreateVehicle(strval(vname),X,Y,Z,ROT,-1,-1,60);
SetVehicleHealth(aveh[playerid],997);
}
else
{
if(!IsValidVehicle(ReturnVehicleID(vname))) return SendClientMessage(playerid,RED,"Error:Invalid Name");
aveh[playerid] = CreateVehicle(ReturnVehicleID(vname),X,Y,Z,ROT,-1,-1,60);
SetVehicleHealth(aveh[playerid],997);
}
PutPlayerInVehicle(playerid, aveh[playerid], 0);
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
LinkVehicleToInterior(aveh[playerid], GetPlayerInterior(playerid));
SetVehicleVirtualWorld(aveh[playerid], GetPlayerVirtualWorld(playerid));
}
return 1;
}