31.03.2012, 19:49
Next problem. Server destroy's vehicle only for id 0.
OnPlayerDeath & OnPlayerDisconnect
OnPlayerDeath & OnPlayerDisconnect
Код:
//top of gamemode new VehicleSpawn[MAX_PLAYERS]; //callbacks DestroyVehicle(VehicleSpawn[playerid]); //OnPlayerConnect if(INI_Open(getVINI(playerid))) { VehicleSpawn[playerid] = CreateVehicle(INI_ReadInt("Model"), INI_ReadFloat("PosX"), INI_ReadFloat("PosY"), INI_ReadFloat("PosZ")+2, INI_ReadFloat("PosA"), -1, -1, never); VehicleFuel[VehicleSpawn[playerid]] = INI_ReadInt("Paliwo"); SendClientMessage(playerid, JasnyNiebieski, "blal"); INI_Save(); INI_Close(); }