15.09.2009, 08:51
Quote:
Originally Posted by dugi
Your script is wrong then.
|
Ok let me take you through this:
Firstly the command is used
pawn Код:
dcmd_destroycar(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] >= 5)
{
EraseVehicle(GetPlayerVehicleID(playerid));
return 1;
}
else return 0;
}
pawn Код:
EraseVehicle(vehicleid)
{
for(new players=0;players<=MAX_PLAYERS;players++)
{
new Float:X,Float:Y,Float:Z;
if (IsPlayerInVehicle(players,vehicleid))
{
GetPlayerPos(players,X,Y,Z);
SetPlayerPos(players,X,Y,Z+2);
SetVehicleToRespawn(vehicleid);
}
SetVehicleParamsForPlayerEx(vehicleid,players,0,1);
}
SetTimerEx("VehRes",3000,0,"d",vehicleid);
return 1;
}
pawn Код:
forward VehRes(vehicleid);
public VehRes(vehicleid)
{
DestroyVehicle(vehicleid);
}
As you can see the SetVehicleParamsForPlayerEx by kc is in there, do you think this could be causing a problem?
Help is appreciated.